When exporting an Xwiki Enterprise site to HTML links referencing headers within page text do not render correctly. Table of contents autogenerated at the top of each page has links based on the headers that DO work correctly when clicked. However for links within the text of the page if a link is inserted referencing a header,it works fine in the wiki, but when exported to HTML the URL is mangled.
For example: A link within a page should be:
Is instead rendered as:
This results in a link that does not function correctly in the exported HTML file.