Patch #6778
closed
Wiki compatibility link broken w/o project_id
Added by W Snyder about 14 years ago.
Updated about 6 years ago.
Description
Recent versions changed from using :id to :project_id for routing.
One replacement was missed in a compatibility link; this breaks old links to the wiki pages. This patch to routes fixes it: Thanks.
routes.rb:
- map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki'
+ map.connect 'wiki/:project_id/:page', :page => nil, :controller => 'wiki', :action => 'show'
+ map.connect 'wiki/:project_id/:page/:action', :page => nil, :controller => 'wiki'
- Assignee set to Eric Davis
- Assignee deleted (
Eric Davis)
I am stepping down from working on Redmine. If someone else is interesting in working on this issue, feel free to reassign it to them.
Eric Davis
Hello,
We upgraded your forge fro 0.8.5 to 1.1.3 and the externals links to wiki pages where broken.
The patch above seem to fix the issue.
Please apply this path !!
Kind regards,
Etienne
- Target version set to Candidate for next minor release
Thanx for this Snippet
there is really an broken route.
routes.rb:
for copy paste
ca. line 237
- broken route disabled
- map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki'
- enables the correct route
map.connect 'wiki/:project_id/:page', :page => nil, :controller => 'wiki', :action => 'show'
map.connect 'wiki/:project_id/:page/:action', :page => nil, :controller => 'wiki'
Your post had helped
command back after an short-smile session script above was not usable and doesn't do what i tgought.
Short Problem:(i am only an ruby/redmine user)
to create an wiki-page it is not the problem.
To edit it doesn't work, because there isn't the right routing entry inside the route.rb.
to compare line above
map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
i had changed the wiki line to
map.connect 'projects/:project_id/wiki/:page/:action', :page => nil, :controller => 'wiki'
it solves the problem
- Status changed from New to Closed
- Target version deleted (
Candidate for next minor release)
A long time has passed since the routing changed and no people complain about this recently. Probably few people want this change.
I think we can close this issue.
Also available in: Atom
PDF