Page MenuHomePhabricator

Cite function for Visual editor and Visual text editor adds information for cookiewall
Closed, DuplicatePublic

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

Event Timeline

Hi @Mbch331 , we've some similar issues on frwiki. Temporary solution we found in the meantime is to run a simple pywikibot bot running daily to replace automatically the portal links by the real citations. This way, the user is not impacted during its edits.
In case it could help you, here is the code I used for our case: P75891

Hi @Mbch331 , we've some similar issues on frwiki. Temporary solution we found in the meantime is to run a simple pywikibot bot running daily to replace automatically the portal links by the real citations. This way, the user is not impacted during its edits.
In case it could help you, here is the code I used for our case: P75891

Permissions issue on the paste.

Permissions issue on the paste.

Should be better. Paste contains two replacement functions, one for myprivacy gdpr portals, and another for perfdrive.com portals. You'll have to adapt it with your local template variable names.