diff --git a/src/Controller/AutocompleteController.php b/src/Controller/AutocompleteController.php index 0bcdeaf..76e7b44 100644 --- a/src/Controller/AutocompleteController.php +++ b/src/Controller/AutocompleteController.php @@ -76,6 +76,13 @@ class AutocompleteController implements ContainerInjectionInterface { $this->linkitProfile = $this->linkitProfileStorage->load($linkit_profile_id); $string = $request->query->get('q'); + $patch_match = []; + // In case we have alias with internal path. + preg_match('/\((.+)\)/', $string, $patch_match); + if ($patch_match) { + $string = $patch_match[1]; + } + $suggestionCollection = $this->suggestionManager->getSuggestions($this->linkitProfile, mb_strtolower($string)); /*