Skip to content

fix: use window.location.replace for OAuth redirect to fix back button#10034

Open
BacLuc wants to merge 1 commit into
ecamp:develfrom
BacLuc:fix-oauth-back-button
Open

fix: use window.location.replace for OAuth redirect to fix back button#10034
BacLuc wants to merge 1 commit into
ecamp:develfrom
BacLuc:fix-oauth-back-button

Conversation

@BacLuc

@BacLuc BacLuc commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

window.location.href = url adds the OAuth provider URL to browser history, so after OAuth login the back button navigates to the provider.

Replace with window.location.replace(url) which replaces the current history entry instead of pushing a new one. After the OAuth callback the back button now navigates within eCamp rather than to the provider.

Fixes #5086

ecamp#5086)

window.location.href = url adds the OAuth provider URL to browser
history, so after OAuth login the back button navigates to the provider.

Replace with window.location.replace(url) which replaces the current
history entry instead of pushing a new one. After the OAuth callback
the back button now navigates within eCamp rather than to the provider.

Fixes ecamp#5086

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Back button on activity returns to OAuth provider after login

1 participant