Ensure locale is added/stripped correctly (#18712)
This makes sure we don't incorrectly strip locale characters from the path if it is not a locale prefix e.g. `/fr` should not be removed from `/frank`. Additional tests have been added to ensure this isn't stripped for this case. Fixes: https://github.com/vercel/next.js/issues/18332
Showing
Please
register
or
sign in
to comment