@omniumretail/component-library 1.2.87 → 1.2.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25721,14 +25721,25 @@ const Header = ({
25721
25721
  if (shouldConfirmNavigation) {
25722
25722
  onLeavingPage("/profile");
25723
25723
  } else {
25724
- window.location.href = profileUrl;
25724
+ console.log("📍 Navigating to profile:", window);
25725
+ if (window.top && window.top !== window.self) {
25726
+ console.log("📍 Navigating to profile1:", profileUrl);
25727
+ window.top.location.href = profileUrl;
25728
+ } else {
25729
+ console.log("📍 Navigating to profile2:", profileUrl);
25730
+ window.location.href = profileUrl;
25731
+ }
25725
25732
  }
25726
25733
  };
25727
25734
  const onHome = () => {
25728
25735
  if (shouldConfirmNavigation) {
25729
25736
  onLeavingPage("/home");
25730
25737
  } else {
25731
- window.location.href = homeUrl;
25738
+ if (window.top && window.top !== window.self) {
25739
+ window.top.location.href = homeUrl;
25740
+ } else {
25741
+ window.location.href = homeUrl;
25742
+ }
25732
25743
  }
25733
25744
  };
25734
25745
  const onSupport = () => {