You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref, relref, relURL, relLangURL, absURL, and absLangURL return template.HTML. The original implementations returned a string. It in unclear when/why the change was made, but it may have happened when the template functions were namespaced.
I've been thinking about this, and can't come up with a good reason for the current data type. We added the urls.JoinPath a few months ago, which returns a string.
It's surprising that a "URL" is represented by something called template.HTML, even if it's just a string under the hood.
This breaks calling .GetPage with the output of relLangURL.
@jmooring:
See gohugoio/hugoDocs#2000
Alternatively, every function that takes a string could be changed to also take a template.HTML.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: