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

Specifying a space key for a page that has a colon (:) right after the first word in the title and it exists on the same space where the Include Page macro is included removes the space key after first edit

    XMLWordPrintable

Details

    Description

      Issue Summary

      Currently, if a user specifies a page link inside the Include Page macro using the Space Key parameter and the page happens to have the colon ( right after the first word in the title, the macro will remove the space key and consider part of the title as the space key value when you first edit the page where the macro is placed.

      If the page title is ‘THIS: is a test title created’

      This:

      MAL:THIS: is a test title created

      Becomes this:

      THIS: is a test title created

      Adding the space key parameter again seems to fix the issue and editing the page can be done normally.

      Documentation on the macro

      https://confluence.atlassian.com/doc/include-page-macro-139514.html

      Steps to Reproduce

      1. Create a new page that contains a colon right after the first word in the title
      2. Publish the page
      3. Create a new page on the same space as the previous one
      4. Add the Include Page macro
      5. Specify the previously created page using space key value (eg. SPC:THIS: title)
      6. Publish the page
      7. Edit the page

      Expected Results

      The space key value is still there and the page is found

      Actual Results

      The space key value is removed and the page is not found.

      Before publishing the page

      After publishing the page

      First page edit

      notice the missing space key

      First edit, view mode

      Workaround

      Edit the page and add the space key back. After the first edit, the space key value sticks to the original value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drodrigues@atlassian.com Diego (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: