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

Incorrect context path calculation for AJS.params

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Highest
    • None
    • 3.1.1
    • None
    • MacOS X 10.5.8 Safari 4, Firefox 3.6

    Description

      For Confluence installations where is no context path (so not http://example.com:8080/confluence/ but just http://example.com:8080/) the context path in AJS.params.contextPath is invalid and so if we try to call Macro Browser (in macro-browser.js):

      url: AJS.params.contextPath + "/plugins/macrobrowser/browse-macros.action"

      the resulting path is:

      http://example.com:8080/pages/undefined/plugins/macrobrowser/browse-macros.action

      instead of correct one http://example.com:8080/plugins/macrobrowser/browse-macros.action

      Attachments

        Activity

          People

            matt@atlassian.com Matt Ryall
            4e04c494bfdb Konstantin Kovalev
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: