Skip to content

Commit

Permalink
starting here, use process.env.PUBLIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Sep 18, 2024
1 parent 14d499f commit c388e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/SessionWarning.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c388e09

Please sign in to comment.