This question is in reference to Atlassian Documentation: Working with Anchors
If you take a look at the page source, it seems like pages with special characters build their anchors the exact same way as normal pages: #<nameofpagewithoutspaces>-<headingwithoutspaces(or defined anchor name)>
Ok I see. So is there a way I could generate that <nameofpagewithoutspaces> part, knowing the actual page title/name (urlencode, or whatever)? It's a blog post, so it never gets shown with a "pretty URL", only with a viewpage.action one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nevermind, used an ugly hack: temporarily inserted a link to that anchor on its own page and took the generated value of the anchor id therefrom. Thanks everybody, case closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Victor,
If the page's title is using a special character, Confluence will change the link for the pageID information as it's stated in the following article:
Cheers,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Guilherme, but my question was not "what happens when page title contains special characters?", but "How does one link to anchors on such pages?" - and that remained unanswered. The regular way did not work - "Working with anchors" suggests me linking to the page using Confluence's regular URL syntax (http://myconfluence.com/display/spacekey/pagename#pagename-anchorname), which is simply non-feasible: all of my page titles contain non-latin (Cyrillic, to be more specific) characters, so these pages are only shown as viewpage.action URLs, they have no pretty URLs at all. I tried adding the anchor directly to the page URL (http://my.confluence.domain/pages/viewpage.action?pageId=12345678#my_anchor), and that also did not work - the page opened at the top, not at the anchor's position. Oh, another point to consider: that page is actually a blog post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.