Fix context options in `markdown` helper

We need to send `path`, not `requested_path`.
This commit is contained in:
Robert Speicher 2015-08-31 16:16:03 -04:00
parent 9bb06ae9ef
commit 7816b22360
1 changed files with 5 additions and 5 deletions

View File

@ -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)