Skip to content

Commit a9c14b8

Browse files
committed
A quick and dirty solution for redirecting after logging in
1 parent 82f7a0d commit a9c14b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/js/auth-buttons.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
await auth.logout()
3131
}
3232
// Now that we have a cookie, reload to display the authenticated page
33-
location.reload()
33+
const webId = new URL(session.webId)
34+
const podUrl = `${webId.protocol}//${webId.host}`
35+
location.href = podUrl
3436
}
3537
}
3638

0 commit comments

Comments
 (0)