I’m creating a search results page using the Search API. I want to set an url like this:
    /search/{text} How should i set up my route? It must accept any combination of characters, including non-ascii, spaces, numbers, etc, but it must not be empty.
This is my current routing rule. As you can see, there is no restriction for the text parameter:
    my.search.results:       path: '/search/{text}'       defaults:         text: NULL         _controller: 'DrupalmyControllerSearchController::results'         _title: 'Search Results'       requirements:         _permission: 'access content' Sponsored by SupremePR



