This commit is contained in:
bootstraponline
2012-08-02 16:55:24 -06:00
parent 80730ee87a
commit 551949de29
+1 -1
View File
@@ -403,7 +403,7 @@ module Gollum
link_name = @wiki.page_class.cname(page.name)
presence = "present"
end
link = ::File.join(@wiki.base_path, CGI.escape(link_name))
link = ::File.join(@wiki.base_path, page ? page.escaped_url_path : CGI.escape(link_name))
%{<a class="internal #{presence}" href="#{link}#{extra}">#{name}</a>}
end
end