Problem/Motivation
Querystrings are stripped from internal links due to normalizeHref returning the entity: style href if the original href has an entity context.
Steps to reproduce
- Create some content with alias foo
- Create another piece of content with a link in a wysiwyg field linking to /foo?language=fr
- Save the content and notice the Linky created will be linking directly to the content and the ?language=fr querystring is lost.
Proposed resolution
Append the querystring part of the url to the returned href.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3266493-querystring-are-stripped.patch | 2.22 KB | mcaddz |
Issue fork linkyreplacer-3266493
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:
- 3266493-querystring-are-stripped
changes, plain diff MR !4
- 2.x
changes, plain diff MR !5
Comments
Comment #2
mcaddz commentedComment #3
mcaddz commentedComment #5
mcaddz commentedComment #8
mcaddz commentedUploading patch
Comment #9
jibranThe patch looks good to me.
Comment #11
dpiMerged.
Thanks.
This can be found in 2.2.1.