[New plugin] Custom routes
- Add new route mappings via the admin panel
- e.g. map
/custom
to/profile/ze
- e.g. map
- Custom mappings are load dynamically
Limitations
- There is still no way to pass query params, since I'm using
recognize_path
. So,/source -> /profile/ze/sitemap?npage=3
leads only to/profile/ze/sitemap
- Even though I link a Route to an Environment, all routes are always loaded, even if it belongs to a different Environment.
- The routes are also loaded if the plugin is disabled, since there is no reference to the environment when evaluating
routes.rb