I already know how to add links via Bookmarks and Table of Contents. I also know how to directly link to a header
However, rather than pasting the entire url for the header, which creates an absolute link to that specific Google Doc, I want to just paste the fragment (
#header=h.abc123xyz). This has the benefit of being document relative, in the sense that if someone makes a copy of my document, saves it as an HTML page, etc (thus changing the URL), the anchor will still work as expected in the new document. Currently, it would just link to the section of the original document.
Is this possible?
Note: I've tried just pasting the fragment in the regular Insert Link dialog, but Google thinks it's an invalid url. Is there a workaround? Am I doing it wrong?