Skip to content

Commit c8dbdce

Browse files
committed
remove hash from redirectUrl
1 parent 2ffd297 commit c8dbdce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/authn/SolidAuthnLogic.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ export class SolidAuthnLogic implements AuthnLogic {
4747
/**
4848
* Handle a successful authentication redirect
4949
*/
50+
const redirectUrl = new URL(window.location.href)
51+
redirectUrl.hash = ''
5052
await this.session
5153
.handleIncomingRedirect({
5254
restorePreviousSession: true,
53-
url: window.location.href
55+
url: redirectUrl.href
5456
})
5557

5658
// Check to see if a hash was stored in local storage

0 commit comments

Comments
 (0)