BigW Consortium Gitlab

Commit 21063c60 by Alfredo Sumaran

Expose shortcuts url from the backend via gon

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