diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-09-01 05:38:58 -0600 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-09-01 05:38:58 -0600 |
commit | 195d79dce0ea424aeea78e8ad35ece83bd708641 (patch) | |
tree | d69603f761255db892711371a41e803e9476a55b | |
parent | 7ed0acd422a95c4cbb1406f67929a5da669f2681 (diff) | |
download | gitlab-ce-195d79dce0ea424aeea78e8ad35ece83bd708641.tar.gz |
path const and prevent default location
-rw-r--r-- | app/assets/javascripts/user.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/user.js.es6 b/app/assets/javascripts/user.js.es6 index c934afa458a..d644a1c0bc6 100644 --- a/app/assets/javascripts/user.js.es6 +++ b/app/assets/javascripts/user.js.es6 @@ -22,12 +22,12 @@ hideProjectLimitMessage() { $('.hide-project-limit-message').on('click', e => { - const path = '/'; + e.preventDefault(); + const path = gon.relative_url_root || '/'; $.cookie('hide_project_limit_message', 'false', { path: path }); $(this).parents('.project-limit-message').remove(); - e.preventDefault(); return; }); } |