When using both the Style macro and the Table of Contents macro on a Confluence page, the TOC's "Absolute URL" does not function.
Steps to reproduce:
The Confluence page URL is appended with an #anchorName that corresponds with the TOC link clicked on
The page URL is not appended with a #anchorName.
Note: If the Style macro is deleted from the page, the Absolute URLs begin to function.
Does anyone have a decent workaround for this?
Happy to help sort out this issue.
Can you tell me what version of Confluence you are using? If you're using Confluence Cloud, could you let me know if this is the old editor or the new editor? The new editor has the publish button in the top-right hand corner.
Lastly, do you have any particular customizations in your style macro or does it not work by default?
I must be using the old editor, since the Publish button is at the bottom right of the screen.
There are no particular customizations in the Style macro that seem to be causing this. Even an empty Style macro, if present, will cause this bug with the TOC.
Per the "About Confluence" modal:
Copyright © 2003 - 2017 Atlassian Corporation Pty Ltd.
The use of this product is subject to the terms of the Atlassian End User Agreement, unless otherwise specified therein.
This product includes software developed by the Apache Software Foundation.
This product also includes the following libraries which are covered by the GNU LGPL license:
This product also includes code written by other third parties.
Additional details regarding these and other third party code included in this product, including applicable copyright, legal and licensing notices, are available in the "licenses" directory under the Confluence installation directory.
Thank you for confirming. I think this could be related to this bug:
When you click on the links in the Table of Contents (without copying/pasting or trying to open them in a new tab) what happens? Does nothing happen, like in the description? When you copy the link, it's just a link to the page w/ no anchor attribute?
When I click on the link in the TOC, it brings me to the correct anchor location in the page. However, the browser URL is not appended with the #anchor.
If I right-click on the TOC link and copy it, I get a long string. Here is an example of the string I copy from a TOC link when a Style macro is saved on the page.
The bolded text is the Page Title. The Underlined/Italicized text is the TOC link name.
My apologies for the long delay. I've reported this as a bug below:
I wanted to be open with you and let you know that in the New Editor, the Style Macro has been discontinued. See We're cleaning up the macro browser for more details under Other macros being deprecated. Therefore, it's not likely that this bug will be fixed before the new editor is completely rolled out.
Thank you again for your understanding.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event