Commit 05a72a43 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'rs-toggle-canary-next-compat' into 'master'

Canary toggle compatible with next.gitlab.com

See merge request gitlab-org/gitlab!78936
parents f1ce3db2 8a2ae8de
......@@ -173,7 +173,12 @@ export default class Shortcuts {
e.preventDefault();
const canaryCookieName = 'gitlab_canary';
const currentValue = parseBoolean(Cookies.get(canaryCookieName));
Cookies.set(canaryCookieName, (!currentValue).toString(), { expires: 365, path: '/' });
Cookies.set(canaryCookieName, (!currentValue).toString(), {
expires: 365,
path: '/',
// next.gitlab.com uses a leading period. See https://gitlab.com/gitlab-org/gitlab/-/issues/350186
domain: `.${window.location.hostname}`,
});
refreshCurrentPage();
}
......
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