Skip to content

Feature: Resolve protocol-relative URLs #123

@pR0Ps

Description

@pR0Ps

Sites that use protocol-relative URLs for external resources (ex: <img src="//example.org/some_image.jpg"/>) expect the resource to be loaded using the same protocol as the site. However, when pulling that URL into a feed reader, the resource is loaded based on the protocol used by the reader to show the content. This mismatch can create issues, for example if the reader caches the content to disk and displays it via a file:// URL.

For now, I've been using the following pattern as a workaround for specific cases:

"modify": [
    {
        "type": "replace",
        "search": "src=\"\/\/",
        "replace": "src=\"https:\/\/"
    }
]

These URLs should probably be automatically converted to protocol-absolute links so these sorts of workarounds aren't needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions