I have a website with some news. I create a view that shows them and filter by category. When I use the filter, it reloads the page and goes at the top of the page. I want it doesn't move on the top of the page.
I added an anchor to the page, but I can't add it to the view redirect link. I tried implementing
hook_view_form_alter() to add a custom submission handler, but it breaks the entire form and the news are not filtered.
I also looked at
hook_views_query_alter(), but it doesn't seem it allow to do what I am trying to achieve.
Is there any way to do this?