Commit 55e2f353d412537a58ff19a63a8cc3d5651d881f
1 parent
36c094b0
Exists in
spb-stable
and in
3 other branches
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 | 134 | end |
135 | 135 | |
136 | 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 | 138 | def path_with_ref(path, ref) |
139 | 139 | if file_exists?(path) |
140 | 140 | "#{local_path(path)}/#{correct_ref(ref)}" |
141 | 141 | else |
142 | - "wikis" | |
142 | + "blob/#{correct_ref(ref)}" | |
143 | 143 | end |
144 | 144 | end |
145 | 145 | ... | ... |