BaseURL path (subdir) sometimes ignored by relURL, absURL

Still pondering on this…

While the canonifyURLs true/false results are consistent… I feel that the relURL vs absURL results are not consistent when the link begins with / (and that’s true for either value of canonifyURLs):

Looking at this:

  • relURL $myRefAbs results in /subdir-canonify-false/images/gopher.png
  • absURL $myRefAbs results in https://hugo-sandbox.netlify.com/images/gopher.png

Shouldn’t both either include or both not include the /subdir-canonify-false portion? We see a consistency in this when the link is relative (when it does not begin with /), but not in this case when the link is absolute (begins with /)… Why so?

1 Like