Markdown URL slug formatting?

Right now I use:

  • [urltext](https://mydomain.com/slug)

Since I use an own domain, I know I can use the shortened URL formatting

  • [urltext](/slug)

However, on

  • https://write.as/writeasusername/slug

this shortened URL formatting turns to

  • https://write.as/slug

If I shorten the URL to work on write.as for it to work there

  • /writeasusername/slug

it doesn’t seem to work on mydomain.com yielding the non existent

  • https://mydomain.com/writeasusername/slug

I’d like for it to work on both in the same way. Any way to solve this duality between write.as and mydomain.com without resorting to javascript stuff ?

Yeah, use a URL of the form ./slug and it should work in both cases.

1 Like

So silly me didn’t get the “.” part …
Thank you davepolaschek!

1 Like