diff --git a/config/routes.rb b/config/routes.rb index b50a644a98..3a0eb09e8a 100644 --- a/config/routes.rb +++ b/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])}" } # 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])}" } scope :controller => 'account' do