Skip to content

Commit

Permalink
replaced href to replace method
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshdev098 committed Oct 16, 2024
1 parent f86d5dc commit 9f1dd9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions public/choose-file.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ <h2>Select Who You Are</h2>
if (radioButtons[i].checked) {
var selectedValue = radioButtons[i].value;
if (selectedValue == "Student") {
window.location.href = "./login.html";
window.location.replace("./login.html")
} else if (selectedValue == "Faculty") {
window.location.href = "./fac_login.html";
window.location.replace("./fac_login.html")
} else if (selectedValue == "Stakeholder") {
window.location.href = "./stk_login.html";
window.location.replace("./stk_login.html")
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion public/form_filling.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
console.log("Information saved");
result.style.display = "inline-block";
setTimeout(() => {
window.location.href = 'main_page.html';
window.location.replace("main_page.html")
}, 2000);
}
else if (response.status == 400) {
Expand Down

0 comments on commit 9f1dd9d

Please sign in to comment.