jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
219 stars 64 forks source link

Search results have incorrect link if site is served on a subdomain via `BASE_URL` #1544

Closed choldgraf closed 2 months ago

choldgraf commented 2 months ago

If a MyST site is deployed with a subdomain (e.g. foo.org/mybook/), then search result links are broken because the subdomain folder isn't added to the links.

For example, see the 2i2c CZI report docs.

AKA, they are missing the report-czi-2021/, which is defined in the BASE_URL environment variable.

Here's the documentation I followed to set up the BASE_URL parameter on github actions

rowanc1 commented 2 months ago

Should be fixed with: