noosfero | [New plugin] Custom routes (!1167)
Gabriel Silva
gitlab at mg.gitlab.com
Fri Apr 7 21:18:13 BRT 2017
New Merge Request !1167
https://gitlab.com/noosfero/noosfero/merge_requests/1167
Project:Branches: gabrielssilva/noosfero:custom_routes to noosfero/noosfero:master
Author: Gabriel Silva
Assignee:
- Add new route mappings via the admin panel
- e.g. map `/custom` to `/profile/ze`
- 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`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170408/4b7283a2/attachment.html>
More information about the Noosfero-dev
mailing list