Looks like cloud editor doesn't support anchors? so i have to try putting a url fragment with the heading title.
sometimes the link works, sometimes it just jumps to the page but does not scroll to the heading referenced in the URL fragment.
how is this supposed to work?
Thank you for bringing this to our attention. I believe you might be running into the following bug:
When it does work, can you let me know if you are visiting from another page, or do you paste the URL into your address bar? Is there any difference that you notice compared to when the anchors do not work?
Testing this morning, it seems like it works if i create a link to another page, with a URL fragment, and simply click it to open in the same tab. if i hit the back button, i am returned to the place i came from.
For URL fragment links to the same page, if i click a url fragment to same page, it works, but back button does not scroll to original location
If i Ctrl-click the link to open in a background tab, it does not work.
If i right click and open in new tab or new window, it does not work.
If i copy the URL, open a blank tab, and paste URL into address bar, it does not work.
so in general, it kinda seems to work for the limited case of just clicking a link and replacing the content in the current tab, but all other browsing patterns are just busted.
(and please note that all of this URL fragment business is just a gross hack to work around the lack of simple anchor/href hyperlinking functionality....)
Latest Chrome on Ubuntu Linux 18.04
My apologies for the long delay. In speaking to the developer on that case, he let me know that this fix was resolved for the old editor. In the new editor, there is no anchor feature, and at this time, you can only link to headings and comments.
Per the Confluence Cloud Editor Roadmap:
The anchor macro is temporarily unavailable, but in the meantime, you can use these workarounds:
Add a table of contents macro to your page
This automatically generates anchor links for each page header. To find those links, right-click (or on mobile, long-press) any of the headers in the table of contents, and copy the link address.
Use page headers as anchors
Anchors are automatically generated for each page header. To link to one, use the https://pageURL#headingtext. The anchor text must be formatted as it is on the page, including punctuation marks, but without spaces.
For example, to link to this section, we would add #Anchors to the page URL, like so: https://confluence.atlassian.com/display/ConfCloud/Confluence+Cloud+Editor+Roadmap#Anchors
Can you confirm with me if the problem you are experiencing is with the new editor? You will be able to tell if the Publish button is in the top right-hand corner of the page while editing.
We are working on the solution for the anchors on the new editor in the meantime, and so you can follow this roadmap page for any updates.
Let me know if you have any questions about that.
Yah I'm using the new editor with the Publish at the top right, and the problem is present for both the TOC hack and the manual URL fragment hack.
A URL with a fragment only jumps to the target if you click it directly from a Confluence page into the same tab. ctrl-click and shift-click for tabbed browsing, and pasting a URL into the address bar for direct access are busted. they justshow the page and ignore the fragment.
Thank you for confirming. So to confirm, the fix was only for the classic editor, as the anchor feature has not yet been fully implemented in the new editor.
This is the reason you are now seeing this behavior.
There's a similar bug here for the new editor:
And a feature request you might be interested in as well since I believe it's similar to your request from earlier:
Since the anchor feature is not yet released in the new editor, I would still encourage you to keep an eye on our Roadmap so you will know when the feature is available.
Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...
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
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events