- Issue created by @sahal_va
- Status changed to Needs review
about 1 year ago 11:57am 23 November 2023
🐛 Relative URLs beginning with // should not be converted Fixed
#2079001: Network path reference urls (//) should not be prefixed →
🐛
Relative URLs beginning with // should not be converted
Fixed
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.
Adjust the regex '/(href|background|src)=["\']([\/#][^"\']*)["\']/'
in line 49 of src/Plugin/Filter/RelToAbs.php to handle this case.
Change code to not replace // urls
Needs review
2.2
Code