set default path for all calls to Cookies.set()

This commit is contained in:
Mike Greiling 2016-10-24 16:31:01 -05:00
parent 67d2b2acb3
commit 1c0213f28e

View file

@ -149,6 +149,10 @@
$document = $(document);
$window = $(window);
$body = $('body');
// Set the default path for all cookies to GitLab's root directory
Cookies.defaults.path = gon.relative_url_root || '/';
gl.utils.preventDisabledButtons();
bootstrapBreakpoint = bp.getBreakpointSize();
$(".nav-sidebar").niceScroll({