Actions
Defect #15872
openurl_for causes routing problems if a plugin uses namespaces
Defect #15872:
url_for causes routing problems if a plugin uses namespaces
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Resolution:
Affected version:
Description
Redmine currently uses a hash parameter as the url to pass to url_for in many places
for example - lib/redmine.rb (pusing items to menu)
I have a complex plugin which uses namespaces for controllers and models.
Since url_for keeps the current namespace it will create the wrong url.
You can read more about the problem here:
http://blog.enriquez.me/2010/2/21/namespaced-controller-and-link-to-helper-in-rails/
Please consider adding "/" to controller when using url_for or use restful paths.
Thanks.
Files
Actions