fix(tradein/frontend): redirect legacy /trade-in root to canonical /v2 #2166
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2166
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-canonical-v2-redirect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/trade-in/(app/page.tsx, HeroSummary) теперь редиректит на каноничную витрину/trade-in/v2(wired на real data). Оценщики клиента попадают сразу на новую версию.redirects()вnext.config.ts—{ source: "/", destination: "/v2", permanent: false }.basePathавто-префиксит source/destination -> редирект/trade-in->/trade-in/v2(подтверждено вroutes-manifest.json: regex^(?!/trade-in/_next)/trade-in(?:/)?$, статус 307).permanent:false-> 307, обратимо, не кэшируется навсегда./trade-in/?id=<uuid>->/trade-in/v2?id=<uuid>. v2 читает?id=черезwindow.location.search(restore оценки) -> ссылки не ломаются.page.tsxи компоненты остаются в репо — только редирект, полностью обратимо.Test plan
npm run build(сNEXT_PUBLIC_BASE_PATH=/trade-in) зелёный — 13 страниц, редирект скомпилирован.routes-manifest.json: source/trade-in, destination/trade-in/v2, 307, destination без query (query пробрасывается).curl -I/trade-in/->307,Location: /trade-in/v2;/trade-in/?id=<uuid>->Location: /trade-in/v2?id=<uuid>.Отдельного merge не делаю (frontend-engineer).