Accessing base_url or other variables in markdown content?

I was trying to link images in markdown content, and with relative links it works when page is directly opened, but stops working when we click into any href #id links as it appends to the url of page (need ../ in path then)…

That’s kind of an unexpected behavior, can we access base_url of the page so we can link absolutely to a URL?

Also sometimes accessing current page variables like this.xyz is useful, I didn’t found any docs pointing towards it unfortunately :frowning:

If you prefix your url with / as opposed to ../ you should have a path relative to the root url

Yeah, but base_url of the site contains a subpath already… Like https://something/subpath/<my-static-site>.

How’d I prepend subpath? I couldn’t read anything from config.toml