Skip to content

Fix program session URLs to use localized slugs#205

Open
PeterDaveHello wants to merge 1 commit into
Snouzy:mainfrom
PeterDaveHelloKitchen:fix/program-session-locale-urls
Open

Fix program session URLs to use localized slugs#205
PeterDaveHello wants to merge 1 commit into
Snouzy:mainfrom
PeterDaveHelloKitchen:fix/program-session-locale-urls

Conversation

@PeterDaveHello

Copy link
Copy Markdown

📝 Description

Fix program session canonical, OpenGraph, hreflang, and structured-data URLs so they use the localized program and session slugs for each target locale.

This avoids alternate URLs pointing to routes that cannot resolve the target locale slug, and keeps program detail session navigation consistent with the current locale.

📋 Checklist

  • My code follows the project conventions
  • This PR includes breaking changes
  • I have updated documentation if necessary

🗃️ Prisma Migrations (if applicable)

N/A

📸 Screenshots (if applicable)

N/A

🔗 Related Issues

N/A

Slugs are translated per locale, but canonical, OpenGraph,
hreflang, and structured-data URLs reused the request path slug.
This made alternate links point at slugs that do not exist in the
target locale.

Build those URLs from the matching locale slugs, and use localized
program slugs for program detail navigation.
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

@PeterDaveHello is attempting to deploy a commit to the Workoutcool Team Team on Vercel.

A member of the Team first needs to authorize it.

@PeterDaveHello PeterDaveHello marked this pull request as ready for review June 12, 2026 15:57
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