OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Change Location Strategy from Hash back to default Path #429

Closed Nightsphere closed 2 years ago

Nightsphere commented 2 years ago

It has been decided to change the application location strategy from HashLocationStrategy back to the PathLocationStrategy for better SEO, easier to read URLs, and other benefits. Any new issues raised because of this change can be added and addressed in additional comments.

Nightsphere commented 2 years ago

The strategy has successfully been changed. In the code, it was a matter of removing 2 lines of code in the InfoMapper's App Module. Other updates that had to occur was Cypress testing code checking current URLs, and updating the AWS Lambda function to return the correct page from the S3 server. This client-side routing and URL manipulation is a major reason why many people ultimately decide on using the hash location strategy.

Nonetheless, the function was successfully updated and renamed, and is currently is use with the poudre OWF subdomain. Closing this issue.