diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index fcb7f91..bd0dd22 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -64,11 +64,11 @@ module GitlabMarkdownHelper links.each do |string| new_link = [ project_path_with_namespace, - wiki ? "wiki":"blob", + wiki ? "wikis":"blob", ref, string ].compact.join("/") - text.gsub!(string, "/#{new_link}") + text.gsub!("](#{string})", "](/#{new_link})") end text end -- libgit2 0.21.2