Next.js Discord

Discord Forum

Hi, im trying to update html based on route path, any tips?

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Looking to do it either in layout or page.tsx, anyone managed to achieve this?
example from:
<html route="/"></html>
to
<html route="/product" />

1 Reply

Californian
I think what you are looking for is <a href> or <Link>