diff --git "a/packages/shared-components/src/apneSakINyttVinduKnapp/\303\205pneSakINyttVinduKnapp.tsx" "b/packages/shared-components/src/apneSakINyttVinduKnapp/\303\205pneSakINyttVinduKnapp.tsx" index ed006a9d49..4ce4c203a8 100644 --- "a/packages/shared-components/src/apneSakINyttVinduKnapp/\303\205pneSakINyttVinduKnapp.tsx" +++ "b/packages/shared-components/src/apneSakINyttVinduKnapp/\303\205pneSakINyttVinduKnapp.tsx" @@ -25,7 +25,8 @@ const ÅpneSakINyttVindu: React.FC & ÅpneSakINytt const { pathname } = useLocation(); const href = useHref(pathname); - const handleClick = () => { + const handleClick = (e: React.MouseEvent) => { + e.preventDefault(); if (pathname.length > 0) { window.open(overridePath || href, target); } @@ -34,7 +35,7 @@ const ÅpneSakINyttVindu: React.FC & ÅpneSakINytt return (