1 parent f47d9c2 commit 0f10db2Copy full SHA for 0f10db2
1 file changed
client/src/main.js
@@ -183,7 +183,7 @@ document.addEventListener('DOMContentLoaded', () => {
183
const loggedUser = loggedUsers.find(user => user.isLoggedIn);
184
if (loggedUser && window.location.href.includes('login.html')) {
185
// אם כבר מחובר, ישר לפרופיל
186
- window.location.href = `/pages/profile.html`;
+ window.location.href = `${basePath}pages/profile.html`;
187
return;
188
}
189
0 commit comments