Fixed hard coded links in wiki pages.
This commit is contained in:
parent
571548dfbc
commit
d6ee00db17
2 changed files with 12 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue