Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaElkotp committed May 1, 2024
1 parent 00e98c9 commit 5b56362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function checkLoging(){
}
function redirectToLoggin(status){
if(status){
window.location = `/auth/?redirect=${window.location.pathname}`;
window.location = `/GGCat-IT-Project/auth/?redirect=${window.location.pathname}`;
}
return 0;
}
Expand Down Expand Up @@ -86,9 +86,9 @@ function navBarActivator(){
if(data.loging){
document.getElementById('auth').remove();
if(data.type == "Admin"){
document.getElementById('dashboard').setAttribute('href', '/admin');
document.getElementById('dashboard').setAttribute('href', '/GGCat-IT-Project/admin');
} else{
document.getElementById('dashboard').setAttribute('href', '/myprofile');
document.getElementById('dashboard').setAttribute('href', '/GGCat-IT-Project/myprofile');
}
} else{
document.getElementById('dashboard').remove();
Expand Down

0 comments on commit 5b56362

Please sign in to comment.