Hacker News new | ask | show | jobs
by Spivak 3036 days ago
The short story of how this works.

- Take an arbitrary article as an example: https://medium.com/popular-science/twitter-is-killing-its-te...

- Extract the article id 58d900b2ac8.

- Hit the url medium.com/p/58d900b2ac8/notes which returns a JSON-ish object.

- Find the webCanonicalUrl. In our case it looks like "webCanonicalUrl":"https://www.popsci.com/twitter-mac-app-dead-applications-rep...

- Go to that instead.

Neat trick.

Edit: Medium appears to have caused webCanonicalURL to always be empty in response to this.