Problem/Motivation
Trying to add a url in a Link field whit a query params that holds an url, the colon inside this query parameter is substitute with a %3A that not always works.
Example: The url https://www.mysite.com/mypath?target=https://my.other.site is escaped as https://www.mysite.com/mypath?target=https%3A//my.other.site inside the a tag and some site may not accept it as a parameter.
Steps to reproduce
- Create a content-type
- Add at least one Link field (with title)
- Create a new content
- Fill the link field with a url as written above
- The rendered link has a %3A in its query string
Proposed resolution
Inside the UrlHelper::buildQuery() function add the substitution of the colon escape character. I made a possible temporary workaround waiting for a better solution.
| Comment | File | Size | Author |
|---|---|---|---|
| url-geneterator-not-decoding-colon.patch | 639 bytes | cicciobat |
Issue fork drupal-3558229
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 #2
cicciobat commentedComment #3
mayurgajar commentedComment #4
mayurgajar commentedComment #6
mayurgajar commentedMR: https://git.drupalcode.org/project/drupal/-/merge_requests/13892
It Needs Works as phpunit unit test fails.
Comment #7
mayurgajar commented