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.

CommentFileSizeAuthor
#8 3266493-querystring-are-stripped.patch2.22 KBmcaddz
Command icon 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

mcaddy created an issue. See original summary.

mcaddz’s picture

Title: Querystring are stripped from internal links » Querystrings are stripped from internal links
mcaddz’s picture

Title: Querystrings are stripped from internal links » Querystrings are stripped from links to content

mcaddz’s picture

Status: Active » Needs review

mcaddz’s picture

StatusFileSize
new2.22 KB

Uploading patch

jibran’s picture

Status: Needs review » Reviewed & tested by the community

The patch looks good to me.

  • dpi committed bb86486 on 2.x authored by mcaddy
    Issue #3266493 by mcaddy: Fixed query from being stripped from entity...
dpi’s picture

Status: Reviewed & tested by the community » Fixed

Merged.

Thanks.

This can be found in 2.2.1.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.