Skip to content

Assets without protocol was inserted in header with a single slash #38

@f-liva

Description

@f-liva

Since version 3.0.0, links without protocol in the pages are placed in the link header with only one slash instead of two.

E.g.

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/tingle.min.css">

Was appended to request headers with a single leading slash

...
links: </cdn.jsdelivr.net/npm/[email protected]/dist/tingle.min.css>; rel=preload; as=style,...

Instead of with two leading slashes (as until version 2.0.6)

...
links: <//cdn.jsdelivr.net/npm/[email protected]/dist/tingle.min.css>; rel=preload; as=style,...

In doing so, the asset is considered relative to the site's url rather than absolute as an external resource.

You can see a live demo of the problem here, by opening the development console.

https://staging2.vivi.city/it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions