Fixed hard coded links in wiki pages.

This commit is contained in:
Benjamin Meichsner 2010-03-22 03:11:32 +01:00
parent 571548dfbc
commit d6ee00db17
2 changed files with 12 additions and 14 deletions

View file

@ -7,9 +7,9 @@ module PagesHelper
def link_to_wikipage(page, text = nil)
if text == nil
link_to page.title, "/wiki/#{page.title}"
link_to page.title, wiki_page_path(page.permalink)
else
link_to text, "/wiki/#{page.title}"
link_to text, wiki_page_path(page.permalink)
end
end