Problem/Motivation

When you create a UI you can place it as a block on the website.

However, it would be nice to add a static route to the search on which the search UI appears.

It could work like this:

Only local images are allowed.

When the user checks a box, a route is provided. This could be a static route like /search-api-decoupled/{endpoint_name}. The route should be displayed, when the checkbox is active, ideally as a link that opens in a new window.

Using page URL aliases, any path can be configured for the search.

The same permissions as for accessing the endpoint could apply.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

breidert created an issue. See original summary.

breidert’s picture

Issue summary: View changes
breidert’s picture

Issue summary: View changes
breidert’s picture

Issue summary: View changes

a.dmitriiev made their first commit to this issue’s fork.

a.dmitriiev’s picture

Status: Active » Needs review
StatusFileSize
new64.67 KB

The new checkbox was added to "UI Elements" page of endpoint:

Search Page

If this checkbox is checked, the page /search-api-decoupled/{search_api_endpoint_machine_name} is available with the block "Search API Endpoint". As it is a normal Drupal page it is also possible to place other blocks on this page.

breidert’s picture

Status: Needs review » Reviewed & tested by the community

I tested it and it works fine. I made a small change to the description of the toggle, so users can easily find the search page.

a.dmitriiev’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.