Skip to content

Conversation

kean
Copy link
Contributor

@kean kean commented Oct 16, 2025

Closes https://linear.app/a8c/issue/CMM-558/add-permalink-in-slug-editor-and-add-explanation-about-slug

  • Add permalink preview to the slug editor. It is based on the new permalinkTemplateURL returned by the server and now included in the Core Data model for 25.6. It seems to be available only using the REST API, so it's Dotcom only.
  "other_URLs": {
    "permalink_URL": "https://test841027.wpcomstaging.com/2025/10/15/%postname%/",
    "suggested_slug": "test-discussion"
  }
  • Add "Learn More" link
  • Automatically lowercase characters you input and replace spaces with dashes

Screenshots

Before / After

Screenshot 2025-10-16 at 6 45 48 PM Screenshot 2025-10-16 at 7 09 06 PM

@kean kean added this to the 26.5 milestone Oct 16, 2025
@kean kean requested a review from crazytonyli October 16, 2025 23:17
@kean kean changed the title Add "Permalink" to the Slug Editor and more Add "Permalink" to the Slug editor and more Oct 16, 2025
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Oct 16, 2025

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number29544
VersionPR #24949
Bundle IDorg.wordpress.alpha
Commitb1455a8
Installation URL53hq8bh9vn6sg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Oct 16, 2025

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number29544
VersionPR #24949
Bundle IDcom.jetpack.alpha
Commitb1455a8
Installation URL2hlog023f3b6g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

.font(.subheadline)
.foregroundColor(.secondary)

if let url = URL(string: "https://wordpress.com/support/permalinks-and-slugs/") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's safe to force-unwrap here, since the value is hard-coded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@kean kean requested a review from crazytonyli October 17, 2025 15:44
@kean kean enabled auto-merge October 17, 2025 15:44
Copy link

@kean kean added this pull request to the merge queue Oct 19, 2025
Merged via the queue into trunk with commit ebf2fc2 Oct 19, 2025
30 of 32 checks passed
@kean kean deleted the task/improve-slug-editor branch October 19, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants