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
def markdown(text, context = {})
context.merge!(
current_user: current_user,
project: @project,
project_wiki: @project_wiki,
ref: @ref,
requested_path: @path
current_user: current_user,
path: @path,
project: @project,
project_wiki: @project_wiki,
ref: @ref,
)
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