Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2867

Linking to non-activated pages breaks in FCK breaks rendering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 4.1
    • fckeditor
    • Linux, Tomcat

    Description

      Problem

      If a page contains a paragraph with an FCK editor a user can add links in the content to other pages of the website. If the user links to a non-activiated page in author and previews the content the FCKeditor paragraph is rendered fine. However, when the FCKeditor paragraph is activated to the public instance all internal links in the entire FCKeditor are corrupted.

      Steps to Replicate

      1. In the author instance create three pages (template doesn't matter)
        • Page1
        • Page2
        • Page3
      2. Activate pages 1 & 2
      3. Create a new page called sitemap (template doesn't matter)
      4. Ensure the sitemap page has a FCKEditor paragraph
      5. Edit the FCKeditor paragraph and add hyperlinks to page 1, 2, 3 (ensure you browse for the pages using the browse button)
      6. Preview the sitemap page and you will see the links showing up correctly
      7. Activate the sitemap page and check links in the public instance

      Actual Result

      • All links in the activated FCKEditor show up incorrectly
      • For example:
        • Link to Page1 shows up as http://mysite/${link:{uuid: {a50db24b-862a-43f3-91e1-2fe48261c133}

          ,repository:

          {website}

          ,handle:

          {/Page1}

          ,nodeData:{},extension:

          {html}

          }}

      Expected Result

      • FCKEditor should at least warn the author that they are linking to a non-activated page; and/or
      • The FCKEditor paragraph in the public instance should render all links correctly regardless (better than breaking all links). This would mean vistors to the site are likely to get a 404 for the non-activated page links.
        • But this is better than what currently happens

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                kraft Boris Kraft
                brent.mcarthur Brent McArthur
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD