Closed Cimbali closed 4 years ago
I don't see :-
being used any longer however all disqus redirects contain ?cuid=PUBLISHER_ID
.
Well that’s good news. It will solve the problem pretty easily.
Also @birdie-github can you provide an example of this cuid
being used? Is it after being redirected or before? If it’s a redirect we should be skipping it anyway, wo?
Hmmm, even with all add-ons disabled I can’t seem to find any request containing cuid
.
I don't know:
https://disq.us/url?url=https%3A%2F%2Finterworks.com%2Fwp-content%2Fuploads%2Fsites%2Fdefault%2Ffiles%2Fblog%2Fu34%2FBlog-rdp-ss5.png%3A7M3TR8p5PbUMRlYCcRLh0Tr-wwk&cuid=1319929 http://disq.us/url?url=http%3A%2F%2FX.org%3AbDT8El1wWYoSCgh_DypT03lvl74&cuid=1319929
&cuid=NUMBER
is used for every link.
It's even in your own original bug report :-)
Thanks ! I’ve taken those links from previous bug reports.
I thought we were looking at requests not links so I was looking in the network log… my bad. Anyway, those cuid
don’t matter as CleaanLinks will redirect the disq.us request to the embedded URL.
wikimedia uses colons
:
in their URLs, however disqus uses a trailing:
as seen in #49. Two examples we have right now:https://disq.us/url?url=https%3A%2F%2Fscholarlyoa.com%2Fpublishers%2F%3A-EibzAO-QGxTovjeNTBl4GVHW68&cuid=1072384 https://disq.us/url?url=https%3A%2F%2Fwww.cnbc.com%2F2018%2F10%2F28%2Fibm-to-acquire-red-hat-in-deal-valued-at-34-billion.html%3A-q99Da4jh5BlAfPTV7GrgJ4rKaU&cuid=1319929
So the current solution, which is to remove colon from the allowed characters post-rewrite, breaks wikimedia pages. What I see here is that:
:-
, so we can add a rule to remove it for disqus onlythe encoded URLs have no query so we can use the path-rewrite for this rule.This rule would need to be applied either post-rewrite, or for all URLs.The main options are: