Skip to content

Commit

Permalink
added relative pathing in the client
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsahMohammad committed Sep 16, 2023
1 parent 09168c7 commit c574406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion studySenseClient/src/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function App() {
secure: true,
});
console.log(data);
window.location.href = "http://localhost:5173/app/";
window.location.href = "app/";
});
} else {
console.error("Failed to authenticate");
Expand Down
2 changes: 1 addition & 1 deletion studySenseClient/src/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function App() {
const token = user.token;
// handling authentication
if (!token) {
window.location.href = "http://localhost:5173/";
window.location.href = "";
}

const [selectedPDFUrl, setSelectedPDFUrl] = useState(null);
Expand Down
2 changes: 1 addition & 1 deletion studySenseClient/src/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function App() {
sameSite: "None",
secure: true,
});
window.location.href = "http://localhost:5173/";
window.location.href = "";
})
.catch((error) => {
console.error("Error occurred while registering user:", error);
Expand Down

0 comments on commit c574406

Please sign in to comment.