Skip to content
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

Display URLs appear encoded in Summary panel #42897

Closed
sabernhardt opened this issue Aug 2, 2022 · 0 comments · Fixed by #42930
Closed

Display URLs appear encoded in Summary panel #42897

sabernhardt opened this issue Aug 2, 2022 · 0 comments · Fixed by #42930
Assignees
Labels
[Feature] Document Settings Document settings experience [Type] Bug An existing feature does not function as intended

Comments

@sabernhardt
Copy link
Contributor

Description

The new Summary panel in Gutenberg 13.7 (added in #42033) shows the encoded version of permalinks in the URL button.

When it was in the Permalinks panel, the permalink appeared decoded. It also had direction: ltr for RTL languages on .edit-post-post-link__preview-link-container, which now should be on the .edit-post-post-url__toggle button. The .editor-post-url__link URL in the popover has the direction property but also needs display: inline-block (or similar) to work properly.

This technically could be fixed as part of #16400, but it's a new problem and it affects many more languages.

Step-by-step reproduction instructions

  1. Create a new post in the editor.
  2. Paste a title with non-latin characters, such as 日本語 for Japanese or العربية for Arabic.
  3. Publish the post. If you have the pre-publish checks, close the post-publish panel and navigate back to the Post settings panel in the sidebar.
  4. Notice that the URL button will have multiple % characters like %e6%97%a5%e6%9c%ac%e8%aa%9e or %d8%a7%d9%84%d8%b9%d8%b1%d8%a8%d9%8a%d8%a9.

Screenshots, screen recording, code snippet

The Summary panel and Permalinks popup, using a Hindi title that creates a very long URL:

URL button with popup open

Modified version of the panel with the decoded URL:

how the URL would appear if decoded

Environment info

WordPress 6.0.1
Gutenberg 13.7 and 13.8.0-rc.1
Firefox 103.0
Windows 10

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Mamaduka Mamaduka added [Feature] Document Settings Document settings experience [Type] Bug An existing feature does not function as intended labels Aug 2, 2022
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Aug 3, 2022
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Settings Document settings experience [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants