LunaticMuch / docusaurus-terminology

docusaurus-terminology
BSD 2-Clause "Simplified" License
4 stars 4 forks source link

reference links break when baseUrl != '/docs' #5

Open yusefnapora opened 1 year ago

yusefnapora commented 1 year ago

Hey, I'm giving this plugin a spin and found that clicking on a Term always tries to go to /docs/terms/${termId}, which unfortunately doesn't exist for me, since I've got my baseUrl set to / in my docusaurus config. The correct path for my config would be /terms/${termId} instead.

It would be great if this plugin could take the baseUrl into account when generating link targets. In the meantime, I can sprinkle some post-processing regex hacks on the output in a build script, but that seems a little sketchy 😄.

LunaticMuch commented 1 year ago

I see. It should be fairly easy to add an argument. I can do this weekend!