fix: keep search params in web app url when needs authorize (#21717)

This commit is contained in:
NFish 2025-06-30 18:28:31 +08:00 • committed by GitHub
commit 9588a64487
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 33 additions and 22 deletions

View file

@ -110,7 +110,7 @@ function unicodeToChar(text: string) {
function requiredWebSSOLogin(message?: string, code?: number) {
const params = new URLSearchParams()
params.append('redirect_url', globalThis.location.pathname)
params.append('redirect_url', encodeURIComponent(`${globalThis.location.pathname}${globalThis.location.search}`))
if (message)
params.append('message', message)
if (code)