Fix overridden project route

pull/6827/head
Oliver Günther 7 years ago
parent e309c34e2f
commit c3000d02ff
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      config/routes.rb

@ -23,7 +23,7 @@ OpenProject::Application.routes.draw do
# replace the standard overview-page with the my-project-page
# careful: do not over-match the reserved path like /projects/new or /projects/level_list, see http://rubular.com/r/1uoiXyApCB
get 'projects/:id', to: "my_projects_overviews#index" ,
constraints: { id: Regexp.new("(?!(#{Project::RESERVED_IDENTIFIERS.join('|')})$)(\\w|-)+") }
constraints: { format: :html, id: Regexp.new("(?!(#{Project::RESERVED_IDENTIFIERS.join('|')})$)(\\w|-)+") }

Loading…
Cancel
Save