Skip to content

Commit bfcac4e

Browse files
authored
fix(landing): keep auth redirects on AMR wallet (#3415) (#3449)
1 parent 3083388 commit bfcac4e

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

apps/landing-page/public/_redirects

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,52 @@
1010

1111
/sitemap.xml /sitemap-index.xml 301
1212

13+
# AMR wallet lives under `/amr`. Social auth callbacks from the wallet can
14+
# return to locale-prefixed `/wallet` paths (for example `/zh/wallet`) after a
15+
# logout/register flow; keep those callbacks on the wallet surface instead of
16+
# falling through to the marketing site.
17+
# Keep locale-prefixed entries in sync with `app/i18n.ts:LANDING_LOCALES`.
18+
# Do not replace them with `/:locale/wallet`: that would also match
19+
# `/amr/wallet` and redirect the wallet URL to itself.
20+
/wallet /amr/wallet 302
21+
/wallet/ /amr/wallet 302
22+
/en/wallet /amr/wallet 302
23+
/en/wallet/ /amr/wallet 302
24+
/zh/wallet /amr/wallet 302
25+
/zh/wallet/ /amr/wallet 302
26+
/zh-tw/wallet /amr/wallet 302
27+
/zh-tw/wallet/ /amr/wallet 302
28+
/ja/wallet /amr/wallet 302
29+
/ja/wallet/ /amr/wallet 302
30+
/ko/wallet /amr/wallet 302
31+
/ko/wallet/ /amr/wallet 302
32+
/de/wallet /amr/wallet 302
33+
/de/wallet/ /amr/wallet 302
34+
/fr/wallet /amr/wallet 302
35+
/fr/wallet/ /amr/wallet 302
36+
/ru/wallet /amr/wallet 302
37+
/ru/wallet/ /amr/wallet 302
38+
/es/wallet /amr/wallet 302
39+
/es/wallet/ /amr/wallet 302
40+
/pt-br/wallet /amr/wallet 302
41+
/pt-br/wallet/ /amr/wallet 302
42+
/it/wallet /amr/wallet 302
43+
/it/wallet/ /amr/wallet 302
44+
/vi/wallet /amr/wallet 302
45+
/vi/wallet/ /amr/wallet 302
46+
/pl/wallet /amr/wallet 302
47+
/pl/wallet/ /amr/wallet 302
48+
/id/wallet /amr/wallet 302
49+
/id/wallet/ /amr/wallet 302
50+
/nl/wallet /amr/wallet 302
51+
/nl/wallet/ /amr/wallet 302
52+
/ar/wallet /amr/wallet 302
53+
/ar/wallet/ /amr/wallet 302
54+
/tr/wallet /amr/wallet 302
55+
/tr/wallet/ /amr/wallet 302
56+
/uk/wallet /amr/wallet 302
57+
/uk/wallet/ /amr/wallet 302
58+
1359
# Locale-code migration: the previous OD landing-page stack used BCP-47
1460
# region-qualified codes (zh-CN, zh-TW, pt-BR, es-ES) whereas the
1561
# current bundle adopts the simpler codes the @astrojs/sitemap plugin

0 commit comments

Comments
 (0)