Project

General

Profile

Actions

Patch #6778

closed

Wiki compatibility link broken w/o project_id

Added by W Snyder about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
2010-10-30
Due date:
% Done:

0%

Estimated time:

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'

Actions #1

Updated by Felix Schäfer about 14 years ago

  • Assignee set to Eric Davis
Actions #2

Updated by Eric Davis about 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

Actions #3

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

Actions #4

Updated by Etienne Massip over 13 years ago

  • Target version set to Candidate for next minor release
Actions #5

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

  1. broken route disabled
  2. map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki'
  3. 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

Actions #6

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

Actions #7

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.

Actions

Also available in: Atom PDF