https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-01-05T16:08:01ZRedmineRedmine - Defect #12749: Plugins cannot route wiki page sub-pathhttps://www.redmine.org/issues/12749?journal_id=438202013-01-05T16:08:01ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Maybe this patch would fix this problem:</p>
<pre>
Index: config/routes.rb
===================================================================
--- config/routes.rb (revision 11111)
+++ config/routes.rb (working copy)
@@ -157,7 +157,7 @@
end
end
match 'wiki', :controller => 'wiki', :action => 'show', :via => :get
- get 'wiki/:id/:version', :to => 'wiki#show'
+ get 'wiki/:id/:version', :to => 'wiki#show', :constraints => {:version => /\d+/}
delete 'wiki/:id/:version', :to => 'wiki#destroy_version'
get 'wiki/:id/:version/annotate', :to => 'wiki#annotate'
get 'wiki/:id/:version/diff', :to => 'wiki#diff'
</pre>
<p>Can you confirm?</p> Redmine - Defect #12749: Plugins cannot route wiki page sub-pathhttps://www.redmine.org/issues/12749?journal_id=439762013-01-09T06:56:50ZRuedi Silvestri
<ul></ul><p>Just finished my testing of this and things look perfect with this approach. Much appreciated for prompt fix of the issue. 2.2 looks awesome to me, great job.</p> Redmine - Defect #12749: Plugins cannot route wiki page sub-pathhttps://www.redmine.org/issues/12749?journal_id=439772013-01-09T06:57:22ZRuedi Silvestri
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>just missed to change the status. :)</p> Redmine - Defect #12749: Plugins cannot route wiki page sub-pathhttps://www.redmine.org/issues/12749?journal_id=440552013-01-10T22:21:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Target version</strong> set to <i>2.2.2</i></li></ul> Redmine - Defect #12749: Plugins cannot route wiki page sub-pathhttps://www.redmine.org/issues/12749?journal_id=440772013-01-11T17:43:21ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Routes entry # "get 'wiki/:id/:version', :to => 'wiki#show' " prevents plugins to use sub-path for wiki</i> to <i>Plugins cannot route wiki page sub-path</i></li><li><strong>Category</strong> changed from <i>Wiki</i> to <i>Plugin API</i></li><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fix committed in <a class="changeset" title="Plugins cannot route wiki page sub-path (#12749)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/11166">r11166</a>, thanks for the feedback.</p>