Skip to content

How to link to another page/post? #177

Closed Answered by saicaca
World-X asked this question in Q&A
Discussion options

You must be logged in to vote

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 be https://your-domain.com/posts/introduction/, so the link here should be [Introduction](/posts/introduction/). If you have set the base, 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@World-X
Comment options

Answer selected by World-X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants