You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Twitter extractor will retrieve "/home" instead of a tweet URL #520
Twitter is now a fully logged-on website: you cannot access a tweet without an account.
So, the extractor will try to request the twitter.com/xxx/status/xxx but will follow location on /home (with the login screen) and will attempt to call the oembed API with /home URI.
The only fix that I found to disable this behavior is to disable the "follow redirection" behavior on cURL.
Hi @Divi, PR #589 should fix this: the oEmbed request now always goes to publish.twitter.com with the original tweet URL, even when the page redirects to x.com/home or the login wall.
You can test it with composer require embed/embed:dev-fix/4.5.5. We will leave the PR open for a few days before releasing 4.5.5, so any feedback is very welcome!
Activity
stevecoug commentedon Jul 1, 2023
Thank you for the fix, that worked for me as well. I only use that for twitter.com URLs.
helmo commentedon Mar 27, 2024
Thanks, the 'follow_location' also helped here....
Here's the patch how I added it, being used from the Drupal url_embed module, https://www.drupal.org/project/url_embed/issues/3435840
Prevent EmbedParser to follow infinite redirect for Twitter links
Prevent EmbedParser to follow infinite redirect for Twitter links
Vitorinox commentedon Oct 31, 2026
Hi @Divi, PR #589 should fix this: the oEmbed request now always goes to publish.twitter.com with the original tweet URL, even when the page redirects to x.com/home or the login wall.
You can test it with
composer require embed/embed:dev-fix/4.5.5. We will leave the PR open for a few days before releasing 4.5.5, so any feedback is very welcome!