Commit 55e2f353d412537a58ff19a63a8cc3d5651d881f

Authored by Marin Jankovski
1 parent 36c094b0

Link to blob instead of linking to wiki.

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/gitlab_markdown_helper.rb
@@ -134,12 +134,12 @@ module GitlabMarkdownHelper @@ -134,12 +134,12 @@ module GitlabMarkdownHelper
134 end 134 end
135 135
136 # Checks if the path exists in the repo 136 # Checks if the path exists in the repo
137 - # eg. checks if doc/README.md exists, if it doesn't then it is a wiki link 137 + # eg. checks if doc/README.md exists, if not then link to blob
138 def path_with_ref(path, ref) 138 def path_with_ref(path, ref)
139 if file_exists?(path) 139 if file_exists?(path)
140 "#{local_path(path)}/#{correct_ref(ref)}" 140 "#{local_path(path)}/#{correct_ref(ref)}"
141 else 141 else
142 - "wikis" 142 + "blob/#{correct_ref(ref)}"
143 end 143 end
144 end 144 end
145 145