@@ -33,11 +33,8 class HelpController < ApplicationController | |||
|
33 | 33 | # choose language according to available help translations |
|
34 | 34 | lang = (@help_config['langs'].include? current_language.to_s) ? current_language.to_s : @help_config['langs'].first |
|
35 | 35 | |
|
36 | if template | |
|
37 | redirect_to "/manual/#{lang}/#{template}" | |
|
38 | else | |
|
39 | redirect_to "/manual/#{lang}/index.html" | |
|
40 | end | |
|
36 | url = "/manual/#{lang}/" + (template || "index.html") | |
|
37 | redirect_to(request.relative_url_root + url) | |
|
41 | 38 | end |
|
42 | 39 | |
|
43 | 40 | private |
General Comments 0
You need to be logged in to leave comments.
Login now