Skip to content

Commit 2f53ceb

Browse files
committed
wip
1 parent 1df211c commit 2f53ceb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/shared/src/internal/clerk-js/redirectUrls.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,14 @@ export class RedirectUrls {
9898
#getRedirectUrl(prefix: 'signIn' | 'signUp') {
9999
const forceKey = `${prefix}ForceRedirectUrl` as const;
100100
const fallbackKey = `${prefix}FallbackRedirectUrl` as const;
101-
let newKeyInUse: string | undefined;
102101

103102
let result;
104103
// Prioritize forceRedirectUrl
105104
result = this.fromSearchParams[forceKey] || this.fromProps[forceKey] || this.fromOptions[forceKey];
106-
if (result) {
107-
newKeyInUse = forceKey;
108-
}
109105
// Try to get redirect_url, only allowed as a search param
110106
result ||= this.fromSearchParams.redirectUrl;
111-
if (result) {
112-
newKeyInUse = 'redirectUrl';
113-
}
114107
// Otherwise, fallback to fallbackRedirectUrl
115108
result ||= this.fromSearchParams[fallbackKey] || this.fromProps[fallbackKey] || this.fromOptions[fallbackKey];
116-
if (result) {
117-
newKeyInUse = fallbackKey;
118-
}
119109

120110
if (!result && this.mode === 'modal') {
121111
return window.location.href;

0 commit comments

Comments
 (0)