diff --git a/src/components/ui/Link.tsx b/src/components/ui/Link.tsx index 19f1d69628e..9adef67872a 100644 --- a/src/components/ui/Link.tsx +++ b/src/components/ui/Link.tsx @@ -159,8 +159,12 @@ export const BaseLink = forwardRef(function Link( } if (isHash) { + // Use I18nLink for hash links to ensure proper browser history management + // This prevents issues where back navigation from a subpage to a page with + // a hash URL fails to re-render the page (the browser would interpret it + // as a same-page scroll rather than a route change) return ( - { e.stopPropagation() trackCustomEvent( @@ -175,7 +179,7 @@ export const BaseLink = forwardRef(function Link( {...commonProps} > {children} - + ) }