WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Show full link in preview except site URL for better understanding #67114

Open AKSHAT2802 opened 3 days ago

AKSHAT2802 commented 3 days ago

Fixes https://github.com/WordPress/gutenberg/issues/65412

What?

It shows the slug along with the prefix and suffix, if any, to give a complete idea of the permalink structure in the post panel.

Why?

To get a sense of how the URL structure is defined for site

How?

Fetched the full permalink and cropped the home URL from it.

github-actions[bot] commented 3 days ago

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

github-actions[bot] commented 3 days ago

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @davidlim.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: davidlim.

Co-authored-by: AKSHAT2802 <akshat2802@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Mamaduka commented 3 days ago

Thanks for contributing, @AKSHAT2802!

The current behavior and permalink are intentional. Based on that, I think there needs to be design feedback on the original issue before moving forward.