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
🌶️ Hot Fix: Issue with TOS and Policies page #1318
When there is no leading slash, the link is appended to whatever is in the address bar; and when that happens while a user is using the site via a custom domain, the link that will be formed will not match anything defined in our AppRouter.js.
Case in point : https://www.energynavigators.org/testimonials/policies?name=Privacy%20Policy
[X] This PR fixes the issue. Right now, I have appended a leading slash to footer links when in custom-domain mode.
Requirements
[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
What was wrong?
When the footer menu items are sent from the backend, they are sent with no leading slashes. They are sent like this:
When there is no leading slash, the link is appended to whatever is in the address bar; and when that happens while a user is using the site via a custom domain, the link that will be formed will not match anything defined in our
AppRouter.js
.Case in point :
https://www.energynavigators.org/testimonials/policies?name=Privacy%20Policy
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:
dev
branch or to a feature branch, not themain
branchfix #xxx[,#xxx]
, where "xxx" is the issue number)Other information: Any otherthing we need to know