Project

General

Profile

Actions

Defect #15872

open

url_for causes routing problems if a plugin uses namespaces

Added by eyal R over 10 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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

redmine_patch_leading_fwd_slash.diff (2.69 KB) redmine_patch_leading_fwd_slash.diff patch for defect 15872 Gord Brown, 2015-09-25 18:57

Related issues

Has duplicate Redmine - Defect #22048: Exception throws during plugin renderingClosed

Actions
Actions

Also available in: Atom PDF