mirror of
https://git.sr.ht/~edwardloveall/scribe
synced 2025-12-10 12:41:23 +00:00
When a post has a gi= query param, Medium makes a global_identifier "query". This redirects via a 307 temporary redirect to a url that looks like this: https://medium.com/m/global-identity?redirectUrl=https%3A%2F%2Fexample.c om%2Fmy-post-000000000000 Previously, scribe looked for the Medium post id in the url's path, not it's query params since query params can include other garbage like medium_utm (not related to medium.com). Now it looks first for the post id in the path, then looks to the redirectUrl as a fallback.