From d9af69b1c2e05f6c0b8c2cd5ee805ee4b95b4234 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Thu, 17 Dec 2020 10:42:33 +0100 Subject: [PATCH] Append location hash on session expired link --- scm-ui/ui-components/src/ErrorNotification.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")}; };