Skip to content

Commit 522b09f

Browse files
committed
update links to profile to point to profile.html instead of to the
userDemo profile Signed-off-by: Roger Barker <pendletonroger@gmail.com>
1 parent 9737997 commit 522b09f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

public/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ document.addEventListener('DOMContentLoaded', () => {
16301630
});
16311631

16321632
profileBtn.addEventListener('click', () => {
1633-
window.location.href = '/demo/userProfileDemo/profile.html';
1633+
window.location.href = '/profile.html';
16341634
});
16351635

16361636
logoutBtn.addEventListener('click', () => {

public/scripts/login.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ loginForm.addEventListener('submit', async (e) => {
3333
const user = userCredential.user;
3434

3535
if (user) {
36-
window.location.href = '/demo/userProfileDemo/profile.html';
36+
window.location.href = '/profile.html';
3737
}
3838
} catch (error) {
3939
console.error('Login error:', error);
@@ -74,7 +74,7 @@ signupForm.addEventListener('submit', async (e) => {
7474
const user = userCredential.user;
7575

7676
if (user) {
77-
window.location.href = '/demo/userProfileDemo/profile.html';
77+
window.location.href = '/profile.html';
7878
}
7979
} catch (error) {
8080
console.error('Signup error:', error);
@@ -99,6 +99,6 @@ signupForm.addEventListener('submit', async (e) => {
9999
// Auth state observer
100100
firebase.auth().onAuthStateChanged((user) => {
101101
if (user) {
102-
window.location.href = '/demo/userProfileDemo/profile.html';
102+
window.location.href = '/profile.html';
103103
}
104104
});

0 commit comments

Comments
 (0)