Skip to content

Make /pt-br/gold the canonical gold URL - #1376

Merged
ebma merged 1 commit into
stagingfrom
feat/gold-locale-first
Sep 16, 2026
Merged

ebma merged 1 commit into
stagingfrom
feat/gold-locale-first

Conversation

@ebma

@ebma ebma commented Sep 16, 2026

Copy link
Copy Markdown
Member

Summary

Settles the Gold URL structure before the production release, consistent with the rest of the site (locale-first: /pt-br/business, /pt-br/widget):

  • Canonical: https://www.vortexfinance.co/pt-br/gold/ — served as plain files from dist/client/pt-BR/gold/, 200, self-referencing canonical link.
  • /gold and /gold/* 301 to /pt-br/gold/… until an international Gold landing exists.
  • The /pt-BR/gold rewrite alias from Alias /pt-BR/gold to the gold app #1374 is removed; /gold/pt-br/ is not served.
  • Future markets follow the same rule (/es-mx/gold/, /es-ar/gold/, /es-co/gold/), each with its own canonical and hreflang.

Gold's Vite base is /pt-br/gold/; the output is copied into the existing pt-BR/ directory so there is only one locale directory on disk (Netlify matches files case-insensitively and normalises pretty URLs to lowercase, so /pt-BR/gold/ 301s to /pt-br/gold/).

Verification

  • cd apps/gold && bun run test: 17 pass; built index.html references /pt-br/gold/... assets and the canonical.
  • netlify-redirects.test.ts: 3 pass (widget shell remains the only lowercase pt-br rule; the /gold/* 301 is asserted).
  • Deploy preview: /pt-br/gold/ 200 with canonical, /pt-BR/gold/ 301 → lowercase, /gold/ and /gold 301 → /pt-br/gold/, /gold/pt-br/ 404, assets 200, unknown asset 404, /, /widget, /pt-BR/widget unchanged.

The site is locale-first (/pt-br/business, /pt-br/widget), so Gold's
Brazilian edition lives at /pt-br/gold/ with a self-referencing
canonical, and future markets follow as /es-mx/gold/ etc. The unprefixed
/gold/ redirects there until an international Gold landing exists; the
/pt-BR/gold rewrite alias is no longer needed.
@netlify

netlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 707b785
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6aaa5436ffcc8f000882997e

@netlify

netlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 707b785
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6aaa5436f6458c000800996b
😎 Deploy Preview https://deploy-preview-1376--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 707b785
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6aaa5436a1d24e0009b1e841
😎 Deploy Preview https://deploy-preview-1376--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ebma
ebma merged commit ea91318 into staging Sep 16, 2026
6 checks passed
@ebma
ebma deleted the feat/gold-locale-first branch September 16, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant