Add test for #542

This commit is contained in:
bootstraponline
2012-10-13 12:57:58 -06:00
parent 66fc8a2d31
commit 432f9b8d2f
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -407,6 +407,12 @@ module Gollum
presence = "present"
end
link = ::File.join(@wiki.base_path, page ? page.escaped_url_path : CGI.escape(link_name))
# //page is invalid
# strip all duplicate forward slashes using helpers.rb clean_url
# //page => /page
# link = one_leading_slash link
%{<a class="internal #{presence}" href="#{link}#{extra}">#{name}</a>}
end
end