[PR #2818] [MERGED] Fix(2753): Replace React Router Navigate with window.location for SSO state refresh #4131

Closed
opened 2026-02-22 18:35:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2818
Author: @andydev404
Created: 12/12/2024
Status: Merged
Merged: 12/12/2024
Merged by: @timothycarambat

Base: masterHead: 2753-sso-redirect


📝 Commits (3)

  • 7a41e99 fix(2753): update SSO redirect to use window.location.replace
  • 232a353 fix(2753): remove unused import
  • 3a03773 Merge branch 'master' into 2753-sso-redirect

📊 Changes

1 file changed (+1 additions, -2 deletions)

View changed files

📝 frontend/src/pages/Login/SSO/simple.jsx (+1 -2)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2753

What is in this change?

Fixed an issue where the SSO redirect wasn’t properly refreshing the application state after successful authentication. Replaced the React Router Navigate component with window.location.replace() to ensure a full page reload and proper state initialization.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2818 **Author:** [@andydev404](https://github.com/andydev404) **Created:** 12/12/2024 **Status:** ✅ Merged **Merged:** 12/12/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2753-sso-redirect` --- ### 📝 Commits (3) - [`7a41e99`](https://github.com/Mintplex-Labs/anything-llm/commit/7a41e99809d858a650a37d8fc96c9aaa37ea522c) fix(2753): update SSO redirect to use window.location.replace - [`232a353`](https://github.com/Mintplex-Labs/anything-llm/commit/232a3532597c8a0a393c75576ce34966878aab42) fix(2753): remove unused import - [`3a03773`](https://github.com/Mintplex-Labs/anything-llm/commit/3a03773a82873e5fa4fdd93300601e75c03815e9) Merge branch 'master' into 2753-sso-redirect ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/Login/SSO/simple.jsx` (+1 -2) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2753 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Fixed an issue where the SSO redirect wasn’t properly refreshing the application state after successful authentication. Replaced the React Router Navigate component with window.location.replace() to ensure a full page reload and proper state initialization. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:12 -05:00
yindo closed this issue 2026-02-22 18:35:12 -05:00
yindo changed title from [PR #2818] Fix(2753): Replace React Router Navigate with window.location for SSO state refresh to [PR #2818] [MERGED] Fix(2753): Replace React Router Navigate with window.location for SSO state refresh 2026-06-05 15:17:00 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4131