[MAGNOLIA-1133] Relative links don't work with fckeditor Created: 12/Oct/06  Updated: 23/Jan/13  Resolved: 25/Oct/06

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 3.0 RC3
Fix Version/s: 3.0 RC4

Type: Bug Priority: Minor
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-1112 Lost mailto links Closed
is related to MAGNOLIA-807 FCKeditor - add a internal popup link... 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

 Description   

If you edit a page and type in html code in fckeditor, and explicitely make a relative link (<a href="features/editing.html">test</a> from a page in the root, for instance) it will be broken by DialogFckEdit.convertToView().
This is due to the fact that documents uploaded through fck will already have their path prefixed with the current document's path, so it has to be stripped by the convertToView method ( StringUtils.substringAfter(src, "/") )



 Comments   
Comment by Magnolia International [ 12/Oct/06 ]

This is related to MAGNOLIA-1112, simply because this was discovered when writing tests for that bug.

Comment by Magnolia International [ 25/Oct/06 ]

fixed in svn

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