Do not convert Relative URLs beginning with // (v2.2.5)

Created on 22 November 2023, about 1 year ago
Updated 23 November 2023, about 1 year ago

Coming from(Or part of issue 🐛 Relative URLs beginning with // should not be converted Fixed )

🐛 Relative URLs beginning with // should not be converted Fixed

Related issues

#2079001: Network path reference urls (//) should not be prefixed
🐛 Relative URLs beginning with // should not be converted Fixed

Problem/Motivation

v2.2.5 of Relative Paths to Absolute URLs module converts src="//xxx" to src="{base_url}/xxx". If the relative path starts with "//" instead of "/", this module should not change it.

Proposed resolution

Adjust the regex '/(href|background|src)=["\']([\/#][^"\']*)["\']/' in line 49 of src/Plugin/Filter/RelToAbs.php to handle this case.

Remaining tasks

Change code to not replace // urls

🐛 Bug report
Status

Needs review

Version

2.2

Component

Code

Created by

🇮🇳India sahal_va

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024