Get a Free Trial
GrabzIt's Online Community

Relative anchor links in docx conversion

Ask questions on how to capture or convert web pages or HTML into images, MP4. CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.

There are no forum posts on this topic! Why don't you write one?

I found this support article outlining how to stop grabzit from converting relative links to absolute links when doing HTML to docx conversion: https://grabz.it/support/article/stop-converting-relative-links/

My document has many relative links that are anchor links to other HTML elements within the page like: <a href="#section-2"> linking to <div id="section-2">.

 

I updated the document to prepend all 'anchor' links with "grabzitlink://", but in the converted docx result, the links are broken and still have the grabzitlink:// prefix. I was expected that to be stripped out, and the relative internal links to exist in the final docx file. is this possible? 

Asked by on the 25th of January 2026

Hi Paul,

We think this is a bug with the bookmarks. We have created a fix and released it. Please remove the "grabzitlink://" from the HTML and try again in about an hour?

Answered by on the 26th of January 2026