fix: 로그인 후 항상 저장소 목록으로 진입

미인증으로 보호 라우트 진입 시 가드가 붙이던 redirect 쿼리로 로그인 후 이전 화면에
복귀하던 동작 제거. LoginPage 는 항상 /repos 로 이동하고, 가드는 redirect 쿼리를
더 이상 보존하지 않는다(딥링크 복귀 제거).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-19 13:12:56 +09:00
parent d87726194b
commit 47567b94a0
2 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -103,9 +103,9 @@ router.beforeEach(async (to) => {
await authStore.bootstrap()
}
// 보호 라우트인데 미로그인 → 로그인 페이지로 (원래 목적지를 redirect 쿼리로 보존)
// 보호 라우트인데 미로그인 → 로그인 페이지로 (로그인 후에는 항상 저장소 목록으로 진입)
if (to.meta.requiresAuth && !authStore.isLoggedIn) {
return { name: 'login', query: { redirect: to.fullPath } }
return { name: 'login' }
}
// 이미 로그인 상태에서 로그인/회원가입 진입 → 저장소 목록으로