mirror of
https://github.com/langgenius/dify.git
synced 2026-05-31 14:16:23 +08:00
The prior fix set errMsg(ssoError) and router.replace(pathname) in the same effect run. router.replace stripped the param and re-rendered, wiping the just-set state and resetting view to code_entry — so the SSO error never showed and the page silently bounced back to code entry. Drive sso_error from a dedicated terminal error_sso view (matching the existing error_* views), leave the non-sensitive param in the URL, and map the code to friendly copy via a dispatch table. Add regression tests, including one asserting router.replace is not called on mount.