[MAGNOLIA-2867] Linking to non-activated pages breaks in FCK breaks rendering Created: 16/Sep/09  Updated: 22/Sep/09  Resolved: 16/Sep/09

Status: Closed
Project: Magnolia
Component/s: fckeditor
Affects Version/s: 4.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Brent McArthur Assignee: Boris Kraft
Resolution: Duplicate Votes: 0
Labels: Fckeditor
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, Tomcat


Issue Links:
duplicate
duplicates MAGNOLIA-2865 Internal Page link in fckEdit: When t... Closed
supersession
is superseded by MAGNOLIA-2872 Further improve/consolidate Link api Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 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


 Comments   
Comment by Magnolia International [ 16/Sep/09 ]

see MAGNOLIA-2865

Generated at Mon Feb 12 03:40:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.