Skip to content

Fails to remove trailing amp URL markup #23

@evanberkowitz

Description

@evanberkowitz

Here are two examples which redirect to the wrong page:

https://www.google.com/amp/s/www.etonline.com/the-bachelorette-season-16-episode-10-Tayshia-Adams-men-tell-all-2020-12-14-live-updates%3famp

  • I just want to say for posterity's sake that I have no interest in the bachelorette, but some of my friends do 😂

https://www.google.com/amp/s/www.washingtonpost.com/nation/2020/12/09/idaho-coronavirus-protest-homes/%3foutputType=amp

The issue is the trailing parts of the URL. After redirect, the first example's URL has an %3famp at the end which, when removed, gives the correct page,

https://www.etonline.com/the-bachelorette-season-16-episode-10-Tayshia-Adams-men-tell-all-2020-12-14-live-updates

The second example's URL has an extra ?outputType=amp/ which, when removed, gives the correct page,

https://www.washingtonpost.com/nation/2020/12/09/idaho-coronavirus-protest-homes/?outputType=amp/

Some other similar examples such as

https://www.google.com/amp/s/nypost.com/2020/12/07/queens-boy-steals-family-car-drives-away-with-sister-to-nj/amp/

https://www.google.com/amp/s/m.jpost.com/omg/former-israeli-space-security-chief-says-aliens-exist-humanity-not-ready-651405/amp

enjoy server-side redirects to the content of 'interest' (again: no real interest, just an example).

This may be a server-side problem---but if half of servers have a wrong implementation, it's something this extension could help with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions