Milad-Akarie / auto_route_library

Flutter route generator
MIT License
1.58k stars 400 forks source link

Feature Request (exists already?): CMS Style 301 Redirect Tracker / Generator for Route Changes #678

Closed mdrideout closed 2 years ago

mdrideout commented 3 years ago

Hey all,

Maybe there is a solution for this already, but I can't see it from testing an implementation and browsing the docs.

My flutter web app is linked to by other Apps, Sites and Tools in my organization's ecosystem (my parent company provides a suite of products, and the flutter app is just one of them).

Maintaining the integrity of inbound links (and link structure for parameters, etc.) is critical. I am afraid that with auto_route, I will make a code change at some point in the future, and it will generate new path structures that break existing inbound links. I would have to manually keep track of generated paths, have a system to test paths after build, and a process to create redirects from old path structures to new ones.

Is there a way for auto_route to keep track of when routes / path structures are changing, and automatically generate redirects? In practical example, CMS's like WordPress and Drupal can be configured handle changes to content paths / taxonomy paths, etc. with automatic redirect generation.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions