scribe/spec
Edward Loveall bb94fb41b1
Support medium's redirectUrl query param
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.
2021-10-11 12:04:17 -04:00
..
classes Improve title parsing 2021-10-03 18:14:46 -04:00
components Improve title parsing 2021-10-03 18:14:46 -04:00
flows Initial app 2021-05-01 17:03:38 -04:00
models Render embedded content 2021-09-15 15:18:08 -04:00
requests/articles Support medium's redirectUrl query param 2021-10-11 12:04:17 -04:00
setup Initial app 2021-05-01 17:03:38 -04:00
support Accept all known medium post path types 2021-10-03 16:45:20 -04:00
spec_helper.cr Initial app 2021-05-01 17:03:38 -04:00