-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
featureIncludes new featuresIncludes new featuresstatus: proposalRequest for commentsRequest for comments
Description
Clear and concise description of the problem
need write regexp
like this \/\S{0,2}\/?landings\/?(.+)? - is simple en/fr (but is en_US?)
http://localhost:3010/davos
http://localhost:3010/landings/davos
http://localhost:3010/landings
http://localhost:3010/landings/
http://localhost:3010/fr/landings/davos
http://localhost:3010/fr/landings
http://localhost:3010/fr/landings/
Suggested solution
it would be convenient to parse h3 routers on the server for example function: getPathWithoutLocale
http://localhost:3010/fr/landings -> /landings
http://localhost:3010/en_US/landings -> /landings
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
featureIncludes new featuresIncludes new featuresstatus: proposalRequest for commentsRequest for comments