If we add "Table of Contents" in a confluence page, based on the heading type it captures all the heading properly. But if we copy the same bookmarks links and use it some other document as a reference link. The copied link will not point to the exact topic rather it will take it to the top of the page.
But eventually the bookmarks link should work and point it to the exact position as per the table of content location.

But when we click on Table of Content any link, it will take me to the associated Content Item. But in parallel, if we use the link in different browser or in document or refresh the browser that link will not work. it will just point it to home page.