Skip to content

Commit

Permalink
Do not show global banner in certain pages
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinred committed Aug 24, 2024
1 parent 3c8438f commit 458008b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/sharedPageSections/SitewideTopAlert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ function SitewideTopAlert({ locale }) {
});
}, [locale]);

if (router.pathname.includes(announcementBarData?.cta.url)) {
if (
router.pathname.includes(announcementBarData?.cta.url) ||
router.asPath.includes("/breakpoint/app")
) {
return null;
}

Expand Down

0 comments on commit 458008b

Please sign in to comment.