Core Links Module Issue when a URL is a query string parameter, e.g. EZproxy links, Zanox tracking links etc.

Created on 14 August 2018, about 6 years ago
Updated 6 September 2023, about 1 year ago

The link module did work well with EZProxy for a few of the past versions of Drupal 8 but is now again broken.

Some services such as EZproxy provide links have urls that provide another url as a query string parameter, for example:

http://ezproxy.domain.com/login?url=http://another.domain.com

It looks as if the URL validation is not properly formatting these links. The link turns into the following:

http://ezproxy.domain.com/login?url=http%3A//another.domain.com

It gets worse when the url passed as the query string has query strings in them, for example

http://ezproxy.domain.com/login?url=http://another.domain.com/some/file?...

turns into:

http://ezproxy.domain.com/login?url=http%3A//another.domain.com/some/fil...

🐛 Bug report
Status

Closed: works as designed

Version

9.3

Component
Link 

Last updated 8 days ago

Created by

🇨🇦Canada lperepol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands Drumanuel

    I have the same issue. The linked site is not routing back correctly because of the encoded link in the query string.

    What is a sensible solution?

    Apparently the URL encoding "works as expected". Should the third party (ezproxy.domain.com in example above) change their handeling of encoded URLs in query strings?

Production build 0.71.5 2024