Menu Autocomplete Link only displays 30 records

Created on 12 June 2020, about 4 years ago
Updated 24 January 2024, 5 months ago

Steps for reproducing the issue:
- Create a new menu
- Add a link
- Link Autocomplete only displays maximum 30 records

Expected Behaviour:
- Link Autocomplete display all the results matching the string (even if it exceeds 30 records number)

Please help. How can I fix it as I am really stuck with it. I tried menu_link but gives lots of error in installing. What else can i do to resolve it?

Thanks for the help.

πŸ’¬ Support request
Status

Fixed

Version

9.3

Component
Menu systemΒ  β†’

Last updated 4 days ago

Created by

πŸ‡¦πŸ‡ΊAustralia swatigarg06

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.

  • πŸ‡§πŸ‡¬Bulgaria a.sotirov

    Since the suggested hook function has been removed from Drupal 10, the refactored code from #8 should look like:

    function my_module_field_widget_single_element_form_alter(&$element, FormStateInterface $form_state, $context) {
      $widget_type = $context['widget']->getPluginId();
      if ($widget_type === 'link_default' || $widget_type === 'link_attributes' || $widget_type === 'link_target_field_widget') {
        $element['uri']['#selection_settings'] = [
          'match_limit' => 0,
        ];
      }
    
Production build 0.69.0 2024