Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle 'as' in Link prop ? #595

Closed
VictorBaudot opened this issue Dec 21, 2019 · 2 comments
Closed

How to handle 'as' in Link prop ? #595

VictorBaudot opened this issue Dec 21, 2019 · 2 comments

Comments

@VictorBaudot
Copy link

VictorBaudot commented Dec 21, 2019

Hello, how can I make this Link work: <Link href="/s/[id]/[slug]" as={/s/${id}/${slug}}>?

image

@VictorBaudot
Copy link
Author

VictorBaudot commented Dec 21, 2019

Solved like this: <Link href={${i18n.language || "fr"}/s/[id]/[slug]} as={/s/${id}/${slug}}>

Is it the best way to do it ?

@isaachinman
Copy link
Contributor

Most likely a duplicate of #413.

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

No branches or pull requests

2 participants