Commit 21063c60 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Expose shortcuts url from the backend via gon

Signed-off-by: default avatarAlfredo Sumaran <alfredo@gitlab.com>
parent eaedc49e
......@@ -21,8 +21,7 @@ class @Shortcuts
$modal.modal('toggle')
return
url = '/help/shortcuts'
url = gon.relative_url_root + url if gon.relative_url_root?
url = gon.relative_url_root + gon.shortcuts_path if gon.relative_url_root?
$.ajax(
url: url,
dataType: 'script',
......
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