Gravatar for puniths@xilinx.com

Question by puniths, Jul 23, 2018 9:11 PM

How to open a new tab on clicking the standalone search box button?

I have an use case where I need to open a new tab on clicking the search button.

Is this possible.?

1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Jul 24, 2018 1:22 PM

The `StandaloneSearchInterface` component does not support that.

You can see how the redirection is done here in the SearchInterface code.

You could either fork the repository and add an option in the component to support this feature, or implement your own redirection similar to what is done in the code linked above.

Ask a question