Hi,
I’m using relativeURLs: true in my config and
I noticed that strings inserted as value of the HREF attribute get checked and corrected. Concretely, when a page living at /comics/comicsname/index.md uses this piece of template:
I want to duplicate the href-correction behavior for other attributes where I need to have this correction (like “data-thumb” for use as a Fancybox parameter).
Is it possible?
And if not, is it possible to turn this behavior off without having to use absoluteURLs?
Well, that’s the strange thing, in my case what I have in the $url ("/comics/comicsname/comicsname-thumb.jpg") is already the result of the relURL function (in the example in my 1st post I wrote just a simplified reconstruction). So the relURL outputs URLs relative to my site’s base URL but the “mysterious HREF corrector” is modifying that URL relative to the page’s location (page’s location is “/comics/comicsname/”). I wish I found some documentation relating to what’s happening and how to take it into account when building my templates. I also tried various workarounds to render my HTML without the correction but it always wins, almost seems like the correction is happening after the HTML was rendered (!).