Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
afuno opened this issue May 28, 2019 · 1 comment
Open

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

afuno opened this issue May 28, 2019 · 1 comment

Comments

@afuno
Copy link

afuno commented May 28, 2019

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?

@cartond
Copy link

cartond commented Aug 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants