Patch #6778
closedWiki compatibility link broken w/o project_id
0%
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'
Updated by Eric Davis almost 14 years ago
- 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
Updated by Etienne Charlier over 13 years ago
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
Updated by Etienne Massip over 13 years ago
- Target version set to Candidate for next minor release
Updated by roman JProof about 13 years ago
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
Updated by roman JProof about 13 years ago
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
Updated by Go MAEDA about 6 years ago
- 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.