-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Twitter embed fails with trailing slash on URL #12664
Comments
Thanks for the report, @kriskarkoski. This should be relatively straightforward to fix up. I've filed it against |
Initial exploration was executed by @alpinealex in #12739. It wasn't finished and this issue can be taken over by someone else. This is the latest recommendation from @notnownikki how to fix this bug:
|
@gziolo I can take this over. |
@gbroques, thank you 👍 |
@gziolo I believe I fixed the issue as @notnownikki suggested and put up a PR #14600. However, I can't seem to run the e2e tests locally to fix the test that's failing the build.
I'm using the built-in local environment as suggested by the End to end testing section in the docs. OS: Ubuntu 16.04 |
Hey folks, I can take a look at this fix tomorrow. If you're having trouble
getting e2e tests to run or pass locally, I'm happy to help out there 🙂
…On Sun, 24 Mar 2019, 17:19 G Roques, ***@***.***> wrote:
@gziolo <https://github.com/gziolo> I believe I fixed the issue as
@notnownikki <https://github.com/notnownikki> suggested, but ran into
some issues running the e2e tests locally.
Error: The constant 'SCRIPT_DEBUG' is not defined in the 'wp-config.php'
file.
I'm using the built-in local environment
<https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md#local-environment>
as suggested by the End to end testing
<https://github.com/WordPress/gutenberg/blob/master/docs/contributors/testing-overview.md#end-to-end-testing>
section in the docs.
*OS:* Ubuntu 16.04
Docker version 18.09.3, build 774a1f4
docker-compose version 1.22.0, build f46880fe
*Node version:* v10.15.3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12664 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADKSsiFx_gz4uhUhC-gXJ7Tsu9YRyBq6ks5vZ7OXgaJpZM4ZHlda>
.
|
Another contributor can pick this issue up and use my PR #14600 as a starting place. It looks like all that's needed is a fix to the e2e tests. Read the PR comments for @notnownikki's suggestion. Hope this helps! :) |
* Fix embedding Twitter URLs with a trailing slash (Closes #12664) * Fix race condition for WordPress URLs that end in slashes, add test
* Fix embedding Twitter URLs with a trailing slash (Closes #12664) * Fix race condition for WordPress URLs that end in slashes, add test
* RichText: improve format boundary style (#14519) * RichText: improve format boundary style * rgb => rgba * Paste: check plain text for gutenberg content (#14536) * Make ClipboardButton inside a block work correctly in Safari (#7106) * Make ClipboardButton inside a block work in Safari * Update changelogs * Block Editor: Update "Next" to "Unreleased" per guidelines https://github.com/WordPress/gutenberg/blob/master/packages/README.md#maintaining-changelogs * Input Interaction: always expand single line selection vertically (#14487) * Input Interaction: always expand single line selection vertically * Add e2e test * Use MenuItem instead of IconButton (#14569) * Remove id, infoid, label and aria-describedby from MenuItem (#14423) * Preformatted: save line breaks as characters (#14653) * Preformatted: save line breaks as characters * Update e2e test * Remove negative toolbar position rules from full-aligned blocks. (#14669) * Fix issue with double scrollbar in Fullscreen Mode (#14677) This PR fixes an issue where the sidebar would have two scrollbars when in fullscreen mode. * Fix WordPress embed block resolution (#14658) * Retry failing embeds with trailing slash (#14705) * Fix embedding Twitter URLs with a trailing slash (Closes #12664) * Fix race condition for WordPress URLs that end in slashes, add test * API Fetch: Fix error on empty OPTIONS preload data (#14714) * Input Interaction: better horizontal edge detection (#14462) * Input Interaction: better horizontal edge detection * Correct BR ranges * Add e2e test * Increase buffer for Firefox * Clean up * Merge isEdge logic * Fix typo * Address feedback * Build docs * Fix memize option key typo (#14750) * RichText: unify active formats, 'selectedFormat' and 'placeholderFormat' (#14411) * RichText: unify active formats, 'selectedFormat' and 'placeholderFormat' * Add extra e2e test * Only should boundary style when focused * Update docs * Try to trigger tests with Travis * Restore Travis config
Describe the bug
Attempting to embed a Tweet with a URL containing a trailing slash causes the embed to fail. While Twitter seems to default to no-slash it does not redirect a URL with a trailing slash to the no-slash version.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Tweet to embed the same as with no trailing slash
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: