Skip to content

fix : /loginにいる際はリダイレクトを行わないように#193

Closed
mumumu6 wants to merge 14 commits intomainfrom
fix/infinite-reload-without-cookie
Closed

fix : /loginにいる際はリダイレクトを行わないように#193
mumumu6 wants to merge 14 commits intomainfrom
fix/infinite-reload-without-cookie

Conversation

@mumumu6
Copy link
Copy Markdown
Member

@mumumu6 mumumu6 commented Jan 20, 2026

/login にいる際にmain.tsの初期化をなくしました。
加えて/loginへのナビゲーションアクセスをnetworkonlyにしました

Copilot AI review requested due to automatic review settings January 20, 2026 08:52
@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an infinite redirect loop that could occur when the user is already on the /login path. When the API returns an opaque redirect (indicating authentication is required), the code now checks the current pathname before performing the redirect to /login.

Changes:

  • Added a check to prevent redirecting to /login when already on that path
  • Changed from window.location.href to window.location.replace for better history management

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mumumu6 mumumu6 force-pushed the fix/infinite-reload-without-cookie branch from a3e9634 to 107b7cb Compare January 25, 2026 12:13
@mumumu6 mumumu6 closed this Feb 3, 2026
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.

2 participants