Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-23328

We display the page name and # character for relative anchor links + make anchor links relative (in the XHTML storage format for Confluence 4.0+).

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 4.0.3
    • None
    • None

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      That is, [#foo] on a page called "Test Page" renders with an alias / link body of "Test Page#foo". In Confluence 3.5 we only displayed "foo" which is a lot nicer.

      This was raised as regression in some of our documentation pages.


      The second part of this issue is to make anchor links relative again in Confluence 4.0+, which isn't the case in the initial Confluence 4.0 release.

      In other words, if a link leads to a target location on the same page (e.g. an anchor link), then in the XHTML storage format, don't store the page reference in the link itself. This was how Confluence 3.5 effectively used to work (in part because its content was stored in 'less sophisticated' wiki markup). However, since all links were treated as absolute links in the initial release of Confluence 4.0, this was causing all sorts of problems like:

      For an initial discussion on how Confluence 4.0 should handle anchor links 'relatively', see this comment on CPSP-45

      Attachments

        Issue Links

          Activity

            People

              pcurren Paul Curren
              dave@atlassian.com dave (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: