Skip to content

fix: 언어 변경 시 queryString 유지 + 뷰 토글 URL 기반 제어 - #33

Merged
gunwoongPark merged 3 commits into
developfrom
fix/qs-preserve
May 14, 2026
Merged

gunwoongPark merged 3 commits into
developfrom
fix/qs-preserve

Conversation

@gunwoongPark

Copy link
Copy Markdown
Owner

변경 사항

1. 뷰 토글 → URL queryString 제어

  • view state(useState) 제거, ?view=party queryString으로 관리
  • list는 파라미터 없음(기본값), party 프레임은 ?view=party
  • 로스터 비울 때 view 파라미터도 클린업

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 등 모든 파라미터가 언어 전환 후에도 유지됨

- 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 전환 적용.
@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
raid-scope Ignored Ignored May 14, 2026 6:31am

@github-actions github-actions Bot added bug Something isn't working feature labels May 14, 2026
@gunwoongPark
gunwoongPark merged commit f697d83 into develop May 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant