Is <Link> served from Global Context <global.Link> valid?
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Hey all,
I've recently noticed some bugs with links in my application. Some of the links were being rendered with the wrong href attribute even containing [slug] from next.js pages router.
I can't find why this error is happening and the only thing that comes to mind is the way the <Link> tag is being used. I'm currently importing the tag on the Global context (shared by all pages in the site) and then using the link from the global context like so:
Is using the <LINK> component from a global context valid?
I've recently noticed some bugs with links in my application. Some of the links were being rendered with the wrong href attribute even containing [slug] from next.js pages router.
I can't find why this error is happening and the only thing that comes to mind is the way the <Link> tag is being used. I'm currently importing the tag on the Global context (shared by all pages in the site) and then using the link from the global context like so:
<global.Link href={content.link.url}>Button</global.Link>Is using the <LINK> component from a global context valid?