mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25: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 [t] = useTranslation("commons");
|
||||
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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user