Changing the way, links to the wiki_syntax help page are generated

This fixes a comment, that was sitting there for more than 2 years.
This commit is contained in:
Gregor Schmidt 2011-05-02 12:18:31 +02:00
parent 9d13deee46
commit 8686a16e0d
1 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ module Redmine
module Textile
module Helper
def wikitoolbar_for(field_id)
# Is there a simple way to link to a public resource?
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
url = url_for(:controller => 'help', :action => 'wiki_syntax')
help_link = l(:setting_text_formatting) + ': ' +
link_to(l(:label_help), url,
:onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;",