Append location hash on session expired link

This commit is contained in:
Eduard Heimbuch
2020-12-17 10:42:33 +01:00
parent 54605161e5
commit d9af69b1c2

View File

@@ -36,7 +36,7 @@ type Props = WithTranslation & {
const LoginLink: FC = () => { const LoginLink: FC = () => {
const [t] = useTranslation("commons"); const [t] = useTranslation("commons");
const location = useLocation(); const location = useLocation();
const from = encodeURIComponent(location.pathname); const from = encodeURIComponent(location.pathname + location.hash);
return <a href={withContextPath(`/login?from=${from}`)}>{t("errorNotification.loginLink")}</a>; return <a href={withContextPath(`/login?from=${from}`)}>{t("errorNotification.loginLink")}</a>;
}; };