Quantcast
Channel: Redmine: Issues
Viewing all articles
Browse latest Browse all 57

Defect #15872 (New): url_for causes routing problems if a plugin uses namespaces

$
0
0

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.


Viewing all articles
Browse latest Browse all 57

Trending Articles