Skip to content

Commit

Permalink
SOV-2310: prevent internal redirect for external links on mobile head…
Browse files Browse the repository at this point in the history
…er menu (#2529)

fix: prevent internal redirect for external links on mobile header menu
  • Loading branch information
soulBit authored Apr 27, 2023
1 parent e1aa348 commit f59623e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ export const DefaultHeaderComponent: React.FC = () => {
href={link.to}
text={link.title}
onClick={() => {
history.push(link.to);
if (!link.hrefExternal) {
history.push(link.to);
}
setOpen(false);
}}
hrefExternal={link.hrefExternal}
Expand Down

0 comments on commit f59623e

Please sign in to comment.