fixed plain /wp redirect too

pull/873/head
Markus Kahl 11 years ago
parent 9a95025bee
commit 9d6643cadf
  1. 2
      config/routes.rb

@ -39,7 +39,7 @@ OpenProject::Application.routes.draw do
match '/issues/*rest' => redirect { |params, req| "#{dir}/work_packages/#{URI.escape(params[:rest])}" } match '/issues/*rest' => redirect { |params, req| "#{dir}/work_packages/#{URI.escape(params[:rest])}" }
# Redirect wp short url for work packages to full URL # Redirect wp short url for work packages to full URL
match '/wp(/)' => redirect('/work_packages/') match '/wp(/)' => redirect('#{dir}/work_packages/')
match '/wp/*rest' => redirect { |params, req| "#{dir}/work_packages/#{URI.escape(params[:rest])}" } match '/wp/*rest' => redirect { |params, req| "#{dir}/work_packages/#{URI.escape(params[:rest])}" }
scope :controller => 'account' do scope :controller => 'account' do

Loading…
Cancel
Save