Repository navigation
fix: 언어 변경 시 queryString 유지 + 뷰 토글 URL 기반 제어 - #33
Merged
Merged
Conversation
- RosterList: view state 제거, searchParams.get('view')로 읽기
- party 뷰일 때만 ?view=party 추가, list는 파라미터 없음
- 로스터 비울 때 view 파라미터도 클린업
- CLAUDE.md: URL queryString 파라미터 문서화
router.replace + router.refresh() 경쟁 조건 제거. window.location.href로 강제 전체 페이지 로드 → 미들웨어가 NEXT_LOCALE 쿠키를 확실히 읽어 locale 전환 적용.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
1. 뷰 토글 → URL queryString 제어
viewstate(useState) 제거,?view=partyqueryString으로 관리?view=partyview파라미터도 클린업2. 언어 변경 버튼 — 하드 내비게이션 전환
router.replace + router.refresh()경쟁 조건 제거window.location.href로 강제 전체 페이지 로드 → 미들웨어가NEXT_LOCALE쿠키 확실히 반영3. 언어 변경 시 기존 queryString 유지
window.location.href = nextPath + window.location.search?view=party,?sort=score&dir=asc등 모든 파라미터가 언어 전환 후에도 유지됨