If link to top is re-directs to homepage, to solve this we have to include following code int to our  typo-script setup page

config {
prefixLocalAnchors = all
}

This  replaces  all links like <a href=”#” > into <a href=”[url]#”>

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark