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
Currently I have only seen this affect the "View the Changelog" button on the list pages (https://github.com/finnito/Science/blob/master/themes/hugo-spartan/layouts/_default/list.html). I am unsure how exactly it is caused and whether it is an issue with the spartan style or with how it is integrating with the page, or possibly a bug or nuance in hugo itself, but the href property of the link ends up being set to an incorrect value (https:/github.com/finnito/Science/commits/master/content/12phy/as91173 as opposed to https://github.com/finnito/Science/commits/master/content/12phy/as91173, note single slash after https:). Reading through the source, at first i thought this may be some small nuance of the path.Join function or something like that, however by cloning and building this on my machine it seems to work. Not entirely sure but if I had to guess I think that either maybe the site is on an older build of the source (unlikely, I assume you have some kind of automation behind this), or maybe that path.Join was modified in newer versions of hugo and your hugo isn't up to date? It could also just be a bug in spartan or hugo, or just a difference in the way hugo builds on different platforms (the hugo documentation does specify a slightly different parsing system for windows to replace backslashes with forward slashes, it seems unlikely but maybe a bug in that causes a parser differential in this case of a https://).
Currently I have only seen this affect the "View the Changelog" button on the list pages (https://github.com/finnito/Science/blob/master/themes/hugo-spartan/layouts/_default/list.html). I am unsure how exactly it is caused and whether it is an issue with the spartan style or with how it is integrating with the page, or possibly a bug or nuance in hugo itself, but the href property of the link ends up being set to an incorrect value (
https:/github.com/finnito/Science/commits/master/content/12phy/as91173
as opposed tohttps://github.com/finnito/Science/commits/master/content/12phy/as91173
, note single slash afterhttps:
). Reading through the source, at first i thought this may be some small nuance of thepath.Join
function or something like that, however by cloning and building this on my machine it seems to work. Not entirely sure but if I had to guess I think that either maybe the site is on an older build of the source (unlikely, I assume you have some kind of automation behind this), or maybe thatpath.Join
was modified in newer versions of hugo and your hugo isn't up to date? It could also just be a bug in spartan or hugo, or just a difference in the way hugo builds on different platforms (the hugo documentation does specify a slightly different parsing system for windows to replace backslashes with forward slashes, it seems unlikely but maybe a bug in that causes a parser differential in this case of ahttps://
).Reproduce:
https:
causing browser to treat as a relative URLFrom Here:
The text was updated successfully, but these errors were encountered: