pretzel
pretzel copied to clipboard
Virtual Directory Support and Protocol-relative URLs
Virtual directory support incorrectly prepends the virtual directory to protocol relative URLs
To Reproduce
- I created my site with:
pretzel create --t=razor --withproject
- Then I baked it:
pretzel bake --cleantarget --t=razor --destination=docs --vDir=somesite.github.io
This produces <link rel="stylesheet" href="/somesite.github.io//cdn.jsdelivr.net/highlight.js/8.4/styles/default.min.css" />
Expected behavior I would expect the virtual directory option to ignore protocol-relative URLs.
Desktop (please complete the following information):
- OS: Win 10
- Version 1903 (OS Build 18362.592)
Thanks for the issue! :) I will try to fix it as soon as I have some spare time but I can't make any promises. A PR would be rewarded with my infinite thanks!
@laedit, you're welcome, and thank you for looking at this. Perhaps one day I'll have a chance to contribute. This concept is entirely new to me. I heard about Pretzel from Plural Sight.
@laedit the last PR's for the global tool are in the making (around weekend), probably I'll look into that
@biohazard999 Thanks! :D
@foundinhim No problem. I didn't even knew that Pretzel was on Plural Sight :)
@foundinhim No problem. I didn't even knew that Pretzel was on Plural Sight :)
@laedit, It is mentioned as one of the alternatives to Jekyll in Serverless Web Applications
Thanks for the link!