]> source.dussan.org Git - redmine.git/commitdiff
Replaced hard coded help link.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Apr 2007 18:16:45 +0000 (18:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Apr 2007 18:16:45 +0000 (18:16 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@435 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/help_controller.rb

index 50505a3d884642224e8006474ff9a65cf7797641..8070c841a28b483f54910ec3de22aa70ca35a8b1 100644 (file)
@@ -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