Merge pull request #647 from opf/feature/redirect_old_issue_links_to_work_packages

redirect old issue links to wp uris
pull/650/head
ulferts 11 years ago
commit 5bc44c8446
  1. 6
      config/routes.rb
  2. 1
      doc/CHANGELOG.md

@ -30,6 +30,12 @@
OpenProject::Application.routes.draw do
root :to => 'welcome#index', :as => 'home'
# Redirect deprecated issue links to new work packages uris
match '/issues(/)' => redirect('/work_packages/')
# The URI.escape doesn't escape / unless you ask it to.
# see https://github.com/rails/rails/issues/5688
match '/issues/*rest' => redirect { |params, req| "/work_packages/#{URI.escape(params[:rest])}" }
scope :controller => 'account' do
get '/account/force_password_change', :action => 'force_password_change'
post '/account/change_password', :action => 'change_password'

@ -33,6 +33,7 @@ See doc/COPYRIGHT.rdoc for more details.
## 3.0.0pre30
* Redirect old issue links to new work package URIs
* `#2721` Fix: Fix: Fix: Fix: Missing journal entries for customizable_journals
* `#2731` Migrated serialized yaml from syck to psych

Loading…
Cancel
Save