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

Need to implement URL redirect within application #386

Open smalers opened 3 years ago

smalers commented 3 years ago

As applications are implemented and change over time, it will be necessary to evolve the content. This will lead to changes in URLs. Users that have linked to specific pages using the URLs will therefore request an invalid resource, Putting in a bad hash fragment for a map shows a blank map.

Is it possible to provide application configuration data that would redirect, to allow evolution? For example, use a dictionary to map old and current URL fragments:

redirects : {
    "old-url-fragment" : "new-url-fragment",
    "map/old-url-fragment" : "map/new-url-fragment"
}