Next.js Discord

Discord Forum

How to push addition route instead of replace use <Link />

Unanswered
David posted this in #help-forum
Open in Discord
Hi, I want to use <Link href="/foo"> to go to "/dashboard/foo" route when user already open /dashboard route. How can I do that?

2 Replies

I literally do not remember if this works but can you try passing "./foo"??
That dot before the / is necessary