Skip to content

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue where it wasn't possible to edit nav items without titles, because there was no title/URL to click on.

When you add a nav item without a title, it'll fall back to the URL. However, when you refreshed the page, it would have just been blank.

Fixes #11818.

@duncanmcclean duncanmcclean changed the title [5.x] Display URL for nav items without titles [5.x] Fall back to URL when nav items are missing titles May 28, 2025
@duncanmcclean duncanmcclean changed the title [5.x] Fall back to URL when nav items are missing titles [5.x] Fallback to URL when title is missing from nav items May 28, 2025
@duncanmcclean duncanmcclean requested a review from jesseleite May 28, 2025 10:14
@jesseleite
Copy link
Collaborator

jesseleite commented May 29, 2025

I’d say the PHP transformer is more for sending data, and the vue component is more for handling how things are displayed. After diving in, I saw we already had url fallback handling on the vue side too. Made that change for you.

Also added edit option to twirldown, since we use that pattern in a lot of other places as well ❤️

CleanShot 2025-05-29 at 15 44 14

@jesseleite jesseleite changed the title [5.x] Fallback to URL when title is missing from nav items [5.x] Fix editability of nav items without content reference May 29, 2025
@jesseleite jesseleite merged commit d4b694e into 5.x May 29, 2025
25 checks passed
@jesseleite jesseleite deleted the fix/nav-items-without-titles branch May 29, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigation items without title are not editable
2 participants