Output control for {search_term_filter:quer34}

Hi bricks team,

As you know, the output of {search_term filter:quer34} is placed inside a span tag. But is there a way to get the output out of the span tag?

I will try to explain the reason for this requirement… As per the screenshot below, I have created an ajax search using search filter + Loop query. At the end of the search results section, there is a view all button that redirects the user to the search results page (according to the searched term). Therefore, we have to create the button link dynamically.

like this : {site_url}/?s={search_term_filter:eukvt}

But considering that {search_term filter:quer34} is created inside a span tag, it prevents this link from working. Is there a better way to create this dynamic link than I think?

3 Likes

Hello @HOSEIN could you solve this ?
Same here

Hi @serdar,

As far as I know, this will be available when the URL parameter is released. There is currently no workaround for it.

Thank you very much :pray: :pray:

1 Like

Any update on this? Trying to do the same thing.

Hi @neoxphuse,

It is now possible using the Filter - Submit / Reset element. Also, in the Filter - Search element, set the url parameter to s.

1 Like

Thanks this worked beautifully.

I was able to achieve this, but the naming of the query from the header and the search had to exactly be the same to forward the results to the search page.