Add option to show URL in autocomplete results

Created on 18 May 2021, about 4 years ago
Updated 17 July 2025, 17 days ago

Thankyou for this useful module!

A client project has pages with duplicate titles (nested under different parents, for different departments of a large organization), and when selecting the menu parent via autocomplete, it was difficult to distinguish which result was correct for a given page. I thought it might be useful to show the URL of each autocomplete result in order to distinguish the duplicate titles.

Patch attached, with a configurable option to enable/disable this feature.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada bgilhome Victoria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom r-mo

    A few small fixes:

    • PHP deprecation: Using ${var} in strings is deprecated, use {$var} instead in src/Controller/MenuSelectAutocompleteController.php on line 74
    • Using dependency injection to load config.factory rather than \Drupal::config()
    • Move $show_title out of loop as there's no need to update each time
Production build 0.71.5 2024