Commit 7816b223 authored by Robert Speicher's avatar Robert Speicher

Fix context options in `markdown` helper

We need to send `path`, not `requested_path`.
parent 9bb06ae9
...@@ -48,11 +48,11 @@ module GitlabMarkdownHelper ...@@ -48,11 +48,11 @@ module GitlabMarkdownHelper
def markdown(text, context = {}) def markdown(text, context = {})
context.merge!( context.merge!(
current_user: current_user, current_user: current_user,
project: @project, path: @path,
project_wiki: @project_wiki, project: @project,
ref: @ref, project_wiki: @project_wiki,
requested_path: @path ref: @ref,
) )
Gitlab::Markdown.render(text, context) Gitlab::Markdown.render(text, context)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment