diff --git a/scm-ui/ui-components/src/ErrorNotification.tsx b/scm-ui/ui-components/src/ErrorNotification.tsx index c43ef73119..689b9f1469 100644 --- a/scm-ui/ui-components/src/ErrorNotification.tsx +++ b/scm-ui/ui-components/src/ErrorNotification.tsx @@ -36,7 +36,7 @@ type Props = WithTranslation & { const LoginLink: FC = () => { const [t] = useTranslation("commons"); const location = useLocation(); - const from = encodeURIComponent(location.pathname); + const from = encodeURIComponent(location.pathname + location.hash); return {t("errorNotification.loginLink")}; };