From: Jean-Philippe Lang Date: Sun, 8 Apr 2007 18:16:45 +0000 (+0000) Subject: Replaced hard coded help link. X-Git-Tag: 0.5.0~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1adf56664d95ba624b81c7cc57603f7f8b5a99c1;p=redmine.git Replaced hard coded help link. git-svn-id: http://redmine.rubyforge.org/svn/trunk@435 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 50505a3d8..8070c841a 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -33,11 +33,8 @@ class HelpController < ApplicationController # choose language according to available help translations lang = (@help_config['langs'].include? current_language.to_s) ? current_language.to_s : @help_config['langs'].first - if template - redirect_to "/manual/#{lang}/#{template}" - else - redirect_to "/manual/#{lang}/index.html" - end + url = "/manual/#{lang}/" + (template || "index.html") + redirect_to(request.relative_url_root + url) end private