pretzel icon indicating copy to clipboard operation
pretzel copied to clipboard

Virtual Directory Support and Protocol-relative URLs

Open foundinhim opened this issue 5 years ago • 7 comments

Virtual directory support incorrectly prepends the virtual directory to protocol relative URLs

To Reproduce

  1. I created my site with: pretzel create --t=razor --withproject
  2. 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)

foundinhim avatar Feb 04 '20 12:02 foundinhim

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 avatar Feb 04 '20 13:02 laedit

@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.

foundinhim avatar Feb 04 '20 13:02 foundinhim

@laedit the last PR's for the global tool are in the making (around weekend), probably I'll look into that

biohazard999 avatar Feb 04 '20 14:02 biohazard999

@biohazard999 Thanks! :D

laedit avatar Feb 04 '20 14:02 laedit

@foundinhim No problem. I didn't even knew that Pretzel was on Plural Sight :)

laedit avatar Feb 04 '20 14:02 laedit

@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

foundinhim avatar Feb 06 '20 12:02 foundinhim

Thanks for the link!

laedit avatar Feb 06 '20 14:02 laedit