Problem/Motivation
The module marks certain valid URLs as invalid-url, this happens with two types of URLs that are syntactically correct:
- ?page=10
- https://xxxxx.safelinks.protection.outlook.com/?url=https://xxxxx.xxxxx-...|xx||xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|x|x|xxxxxxxxxxxxxxxxxxxx|Unknown|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | without-MR-changes.png | 61.84 KB | dkmishra |
| #4 | with-MR-changes.png | 61.83 KB | dkmishra |
Issue fork entity_mesh-3591294
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dkmishra commentedVerified the branch addresses both reported cases. Query-only relative URLs like `?page=10` are now validated as relative URLs, and SafeLinks-style URLs containing raw pipe characters are normalized before `UrlHelper::isValid()` runs. Please see the screenshots.
Without MR changes

With MR changes

Tested and RTBC +1
Comment #5
eduardo morales albertiComment #6
eduardo morales albertiComment #7
eduardo morales albertiComment #9
eduardo morales albertiFixed!