You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using server islands to render markdown, footnotes generated by remark-rehype link to the root (/) rather than the current page. The links work when using client-side rendering.
Actually, this can be fixed without access to the current route. Since these footnote references are simply anchors, the href simply needs to be the dom id of the anchor.
Environment
Reproduction
https://github.com/JakeIsMeh/content_islands_footnotes_repro
Describe the bug
When using server islands to render markdown, footnotes generated by remark-rehype link to the root (
/
) rather than the current page. The links work when using client-side rendering.Additional context
This setup is adapted from https://roe.dev/blog/nuxt-server-components
Having attempted to debug this myself, I noticed that $nuxt.route was undefined during server rendering, however I'm not sure how else to proceed.
Logs
No response
The text was updated successfully, but these errors were encountered: