Skip to content

V8: how is custom paths supposed to work? #1691

Answered by kazupon
niklasfjeldberg asked this question in Q&A
Discussion options

You must be logged in to vote

v8 custom paths are implemented in the same spec as v7. As mentioned in this issue.
unfortunately, it only works with named routes.
#641

localePath({ name: 'recipes' }) -> /en/recipes
localePath({ name: 'recipes' }, 'no') -> /oppskrifter
localePath({ name: 'recipes' }, 'en') -> /en/recipes

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aligzl
Comment options

@BobbieGoede
Comment options

@aligzl
Comment options

Answer selected by niklasfjeldberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants