Get Link to Page in Markdown #5490
Unanswered
JuStTheDev
asked this question in
Question / Answer
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I wonder if there is a possibility to get a link to a specific page in markdown. My use case is, that I am writing a post (.md) and want to link to a page. I wonder if the only possibility is to have the path explicitly as in
href="/[myprefix]/path/to/page
(my _config.yml has aurl: https://domain/[myprefix]
set). The problem with this is when I change themyprefix
, I have to correct hard-coded paths everywhere. Relative paths are also not perfect because the relation depends on thepermalink
-value in_config.yml
.I know there is a solution for linking to posts here but I was not able to use this for linking to a page.
I would be fine with an answer "not possible" but I would also be interested in your practices in linking to internal pages.
Beta Was this translation helpful? Give feedback.
All reactions