Page MenuHomePhabricator

Cite function for Visual editor and Visual text editor adds information for cookiewall
Open, Needs TriagePublic

Description

When we add links to websites that have a cookiewall site in front of their website the cite function adds the information for the cookiewall site instead of the requested site. This leads to incorrect references.

Steps to reproduce:
Edit/create an article using the visual (text) editor and add a reference by using the Cite button. Use automatic mode and add a link to a website that uses a cookiewall site.

Expected result:
Reference based on the original url

Actual result:
Reference based on the cookiewall url

Example:
https://www.ad.nl/binnenland/kinderen-met-snot-mogen-zonder-koorts-naar-opvang-of-kleuterklas~aafc47b8/ results in:

<ref>{{Cite web|title=Privacy settings|url=https://myprivacy.dpgmedia.net/?siteKey=V9f6VUvlHxq9wKIN&callbackUrl=https%3a%2f%2fwww.ad.nl%2fprivacy-gate%2faccept%3fredirectUri%3d%252fbinnenland%252fkinderen-met-snot-mogen-zonder-koorts-naar-opvang-of-kleuterklas%257eaafc47b8%252f|access-date=2020-06-16|website=myprivacy.dpgmedia.net}}</ref>

expected:

<ref>{{Cite web|title=Kinderen met snot mogen zonder koorts naar opvang of kleuterklas {{!}} Binnenland {{!}} AD.nl|url=https://www.ad.nl/binnenland/kinderen-met-snot-mogen-zonder-koorts-naar-opvang-of-kleuterklas~aafc47b8/|access-date=2020-06-16|website=ad.nl}}</ref>

Other cookiewall domains: privacy.vakmedianet.nl / toestemming.ndcmediagroep.nl / cookies.rtlnieuws.nl and probably more.

Issue reported here and here