Skip to content

Commit

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

0 comments on commit 99475c7

Please sign in to comment.