diff --git a/frontend/src/components/SessionWarning.jsx b/frontend/src/components/SessionWarning.jsx index 254a5ec115..6bfe8bb1cb 100644 --- a/frontend/src/components/SessionWarning.jsx +++ b/frontend/src/components/SessionWarning.jsx @@ -43,7 +43,7 @@ const SessionWarningModal = ({ const handleSessionButtonClick = () => { if (action === "login") { - window.open(`/react/login/`, "_blank"); + window.open(`${process.env.PUBLIC_URL}/login/`, "_blank"); } else { fetch(`${window.wildbookGlobals?.baseUrl}../ExtendSession`) .then((res) => res.json())