Project

General

Profile

Actions

Defect #11609

closed

Override redmine routes.rb in a plugin in redmine 2.x

Added by Bob Bottle over 11 years ago. Updated over 8 years ago.

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

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

Currently, it doesn't seem possible to override redmine application routes in a plugin.

For instance, I want to override the home link to go to projects. I can hack redmine/config/routes.rb to have

root :to => 'projects#index', :as => 'home'
and that works.

However, when I make a plugin and add this to routes.rb

RedmineApp::Application.routes.draw do
  root :to => 'projects#index', :as => 'home'
end
It has no effect. I can see the route is added by seeing them in rake routes however.

It seems this was possible in redmine 1.x (#3867)


Related issues

Related to Redmine - Defect #12590: Plugin routes.rb files are not getting included on WindowsClosedJean-Baptiste Barth

Actions
Actions

Also available in: Atom PDF