Fix context options in `markdown` helper
We need to send `path`, not `requested_path`.
This commit is contained in:
parent
9bb06ae9ef
commit
7816b22360
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue