massenergize / frontend-portal

Front End Code for the MassEnergize Community Portal. The community portal is customized for each participating community, and has the canonical URL https://community.massenergize.org/<community-name>/. For example, https://community.massenergize.org/wayland/.
MIT License
5 stars 2 forks source link

Fix: #1350 Icon box links not working properly #1353

Closed frimpongopoku closed 2 months ago

frimpongopoku commented 2 months ago

Summary / Highlights

I checked and found that we are actually checking for all the weird cases for user input. Looks like the fault was from __is_custom_site -- it cant be trusted. So I just implemented a better check for the app to accurately determine when we are on a MassEnergize domain... then show the appropriate link. (i.e. prefix with subdomain)

Details (Give details about what this PR accomplishes, include any screenshots etc.)

Testing Steps (Provide details on how your changes can be tested)

Requirements

Transparency (Project board)

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

Other information: Any otherthing we need to know