-
Ditto. I want to add a link, whether by the use of Markdown or HTML tags, from a post or page to another page within the same site. Something like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The link should be a URL path relative to your root domain, not a file path. In this case, the generated URL for Alternatively, you can try this plugin: https://github.com/vernak2539/astro-rehype-relative-markdown-links |
Beta Was this translation helpful? Give feedback.
The link should be a URL path relative to your root domain, not a file path.
In this case, the generated URL for
/src/posts/introduction.md
will behttps://your-domain.com/posts/introduction/
, so the link here should be[Introduction](/posts/introduction/)
. If you have set thebase
, make sure to include it in the link as well.Alternatively, you can try this plugin: https://github.com/vernak2539/astro-rehype-relative-markdown-links