next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Redirects docs: added example and note about pathPrefix

Open theRuslan opened this issue 3 years ago • 7 comments

theRuslan avatar Apr 26 '22 18:04 theRuslan

@TheRuslan is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 26 '22 18:04 vercel[bot]

Sorry for the mess. There should be only last commit #181 12c412e

theRuslan avatar Apr 26 '22 18:04 theRuslan

The reason is that Drupal will search through redirects for path with prefix of original locale, but nextjs sending path without locale prefix for default locale so no redirects are matching.

theRuslan avatar Apr 26 '22 19:04 theRuslan

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-drupal ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 1:48AM (UTC)

vercel[bot] avatar Apr 27 '22 01:04 vercel[bot]

@TheRuslan Is this still an issue with the DrupalClient?

shadcn avatar May 05 '22 11:05 shadcn

@shadcn yes, this is relevant for DrupalClient too.

theRuslan avatar May 05 '22 12:05 theRuslan

Merged this with the new file structure (with Guides)

theRuslan avatar May 05 '22 12:05 theRuslan

This fixed my issue with setting up redirect for my multilingual site. Maybe this should get merged?

roundpanda avatar Aug 10 '23 08:08 roundpanda