Skip to content

Commit b03d7dc

Browse files
feat(UniversalLogin): add path to quartz url (#6238)
* feat(UniversalLogin): add path to quartz url * chore: prettier
1 parent 4c4e456 commit b03d7dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/onboarding/containers/CloudLoginPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ export const CloudLoginPage: FC = () => {
5959
fetch('/api/env/quartz-login-url')
6060
.then(async response => {
6161
const quartzUrl = await response.text()
62-
console.warn('Redirect to cloud url: ', quartzUrl)
63-
window.location.replace(quartzUrl)
62+
const pathname = window.location.pathname ?? ''
63+
const redirectUrl = quartzUrl + pathname
64+
console.warn('Redirect to cloud url: ', redirectUrl)
65+
window.location.replace(redirectUrl)
6466
})
6567
.catch(error => console.error(error))
6668
return null

0 commit comments

Comments
 (0)