filterrific icon indicating copy to clipboard operation
filterrific copied to clipboard

How to make a redirect to the main section when searching?

Open afuno opened this issue 6 years ago • 1 comments

I have a search in the navigation. This search is available on any page.

How do I redirect to the right section when searching?

Now if I do a search, for example, on the main page, I will get the following address:

http://localhost:3000/home?utf8=%E2%9C%93&filterrific%5Bsearch_by_query%5D=text&commit=Search

But there are no posts on the /home page. That is, I need to go to the /posts section and look for it already.

How to do it?

afuno avatar May 28 '19 20:05 afuno

This could be handled in the controller, or in JS by going to the new URL with the parameters.

cartond avatar Aug 28 '19 19:08 cartond