Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: allow upto three url redirects in onebox #5457

Merged
merged 1 commit into from Dec 26, 2017

Conversation

arpitjalan
Copy link
Member

This PR fixes Medium oneboxes. Issue originally reported here: https://meta.discourse.org/t/onebox-for-subdomains/73893

Even after going through FinalDestination library Medium performs following redirects in Onebox:

  1. https://hackernoon.com/practical-functional-programming-6d7932abc58b?gi=9262906b7e6c
  2. https://medium.com/m/global-identity?redirectUrl=https%3A%2F%2Fhackernoon.com%2Fpractical-functional-programming-6d7932abc58b
  3. https://hackernoon.com/practical-functional-programming-6d7932abc58b?gi=4b490916fb4b

Currently since onebox is limited to one redirect, the oneboxing is failing.

@discoursebot
Copy link

You've signed the CLA, techAPJ. Thank you! This pull request is ready for review.

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/onebox-for-subdomains/73893/6

@SamSaffron
Copy link
Member

OK, seems safe enough.

@SamSaffron SamSaffron merged commit b205910 into discourse:master Dec 26, 2017
@arpitjalan arpitjalan deleted the onebox-redirects branch March 6, 2018 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants