I have built a onepager.
On the index.php are 6 anchors & I have 6 links in the menu.
Besides the index.php I have 2 other pages also with links in the menu. The anchors I have all set up with # & external URL. The problem now is that when I am on one of the 2 other pages, the anchor links no longer work. Because then simply behind the opened link an #anchor is set, this anchor on this page does not exist, but on the index.php.
I can also not specify the whole link for each menu item, because otherwise no more scrolling takes place but the whole page reloads.
What can I do to get from the 2 pages to the remaining anchors?
Translated with www.DeepL.com/Translator (free version)