Ok. I think my question was kinda confusing.
Let’s say you click on a link in the submenu on the second mainmenu-link “Ihre Lösungen” -> “ERP Systeme”. Then you are on a subpage. Once you’re on that subpage I have the links in the mainmenu pointing at the Start/Home page. So when you click now on “Unsere Referenzen” I want the page to go back to the Start/Home and scroll to the appropriate div. But instead it tries to go to a div that doesnt exist on that page.
I hope this makes it a bit more clear what the problem is.
Thanks!