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

Link to other pages breaks on Blog Posts when they are moved to a different Space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 5.6.3
    • None

      When you move a blogpost that have a link to a page which resides in the same space of that blogpost the link will be lost when the blog is moved to other space.

      Steps to reproduce.

      1. Start a Confluence 5.6.3.
      2. Download the Source Editor Plugin from marketplace.
      3. Upload the add on manually.
        Source edit plugin will show as not compatible but it will work.
      4. Create two Spaces, Test Pptx and Space 1.
      5. Now in Test pptx space create a blogpost.
      6. Add a title on it and click on link.
      7. Select the Test pptx home as the linked page.
      8. Click on Publish.
      9. If you edit the blog and click on the source edit icon, this is how the storage format looks like:
        <p>
          <ac:link>
            <ri:page ri:content-title="Test Pttx Home"/>
          </ac:link>
        </p>
        
      10. Now Move the blog post to Space 1 Space.
      11. You will see that the "Test Pptx Home" link will be in red and if you click on it you will be prompt with a creation page screen.
      12. If you edit the blog and click on the source edit icon, this is how the storage format looks like:
        <p>
          <ac:link>
            <ri:page ri:content-title="Test Pttx Home"/>
            <ac:plain-text-link-body><![CDATA[Test Pttx Home]]></ac:plain-text-link-body>
          </ac:link>
        </p>
        

      Notes:

      This does not happens when we move pages, when a page is created it does not get a space key in the storage format and when we move the page a space key is added (ri:space-key="TP", in above scenario), however with blog post that does not happens which results in this behaviour.

      Workaround:

      1. Edit the blog post and then click on the source editor icon.
      2. This is how the storage format looks like:
        <p>
          <ac:link>
            <ri:page ri:content-title="Test Pttx Home"/>
            <ac:plain-text-link-body><![CDATA[Test Pttx Home]]></ac:plain-text-link-body>
          </ac:link>
        </p>
        
      3. Now add the space key of Test Pptx Space:
        <p>
          <ac:link>
            <ri:page ri:content-title="Test Pttx Home" ri:space-key="TP"/>
            <ac:plain-text-link-body><![CDATA[Test Pttx Home]]></ac:plain-text-link-body>
          </ac:link>
        </p>
        
      4. Hit Save.
      5. The link will be fixed and if you use the source edit plugin one more time you will see that Confluence will also adjust the storage format to the way it should be:
        <p>
          <ac:link>
            <ri:page ri:content-title="Test Pttx Home" ri:space-key="TP"/>
          </ac:link>
        </p>
        

        1. img1.PNG
          71 kB
          Deividi Luvison
        2. img2.PNG
          75 kB
          Deividi Luvison

              shaffenden Steve Haffenden (Inactive)
              dluvison Deividi Luvison (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: