Skip to content

Remove file_url replacement trailing slash #50

@Aerzas

Description

@Aerzas

To support protocol relative URLs, a slash is added after the replacement but it introduces multiple issues.

When the baseUrl is defined to a domain, it adds an unecessary slash.

When the baseUrl is not defined, it adds an unecessary leading slash.

  • Base Url: /
  • URL: stream://image/dummy.png
  • URL replaced: //image/dummy.png

Note that //image/dummy.png is not a valid protocal-relative URL since there is no domain, a correct URL would be//example.test/image/dummy.png

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