Anchor links query-params


I want to create a single page/route that vertically (below each other) renders a bunch of different templates, which all have headings that should function as the HTML anchors. Then having a menu at the top which, when clicked on it, simply scrolls down to the right heading/route but I am still on the same page and can scroll back up again/further down. I found this stackoverflow question: which has a great answer using query-params, but unfortunately using the old implementation. So how could I get something done like that with the new query-params?

Also to get a bit more specific: I have an application.hbs with the navigation / all the anchor links. Then I have an index.hbs which renders 4 different had templates/routes.

As always, help is really appreciated.