git-svn-id: http://svn.redmine.org/redmine/trunk@18667 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.1.0
@@ -899,8 +899,9 @@ module ApplicationHelper | |||
# check if page exists | |||
wiki_page = link_project.wiki.find_page(page) | |||
url = | |||
if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) || | |||
obj.is_a?(WikiContent::Version)) && obj.page == wiki_page | |||
if anchor.present? && wiki_page.present? && | |||
(obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) && | |||
obj.page == wiki_page | |||
"##{anchor}" | |||
else | |||
case options[:wiki_links] |