Skip to content

Commit

Permalink
Typo when getting query parm
Browse files Browse the repository at this point in the history
  • Loading branch information
jrunestone authored and Matthew-Wise committed Jun 1, 2024
1 parent cae106b commit 5795cf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class UmbExternalLoginProviderElement extends LitElement {
@property({attribute: 'external-login-url'})
set externalLoginUrl(value: string) {
const tempUrl = new URL(value, window.location.origin);
const searchParams = new URLSearchParams(tempUrl.search);
const searchParams = new URLSearchParams(window.location.search);
tempUrl.searchParams.append('redirectUrl', decodeURIComponent(searchParams.get('returnPath') ?? ''));
this.#externalLoginUrl = tempUrl.pathname + tempUrl.search;
}
Expand Down

0 comments on commit 5795cf1

Please sign in to comment.