Skip to content

Commit

Permalink
Temp window url for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Jan 14, 2025
1 parent 54b463c commit 3cb2bfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ class Gnav {
export default async function init(block) {
const { mep } = getConfig();
const sourceUrl = await getGnavSource();
const newMobileNav = new URLSearchParams(window.location.search).get('newNav') === 'true' || getMetadata('mobile-gnav-v2') !== 'false';
let newMobileNav = new URLSearchParams(window.location.search).get('newNav');
newMobileNav = newMobileNav ? newMobileNav !== 'false' : getMetadata('mobile-gnav-v2') !== 'false';
const [url, hash = ''] = sourceUrl.split('#');
if (hash === '_noActiveItem') {
setDisableAEDState();
Expand Down

0 comments on commit 3cb2bfe

Please sign in to comment.