mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
Append location hash on session expired link
This commit is contained in:
@@ -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>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user