mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: preserve search params with leading question mark
This commit is contained in:
parent
aa0f59c90b
commit
659fa2122b
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ async function getAccessTokenWithCode(code: string) {
|
|||
window.history.replaceState(
|
||||
{},
|
||||
'removed search param',
|
||||
window.location.pathname.replace(window.location.search, search.toString()),
|
||||
window.location.pathname.replace(window.location.search, '?' + search.toString()),
|
||||
)
|
||||
return accessToken
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue