Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Virtual Directory Support and Protocol-relative URLs #367

@foundinhim

Description

@foundinhim

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions