Wrong links saved by fckeditor when the page path starts with a directory = 
context path
----------------------------------------------------------------------------------------

                 Key: MAGNOLIA-2670
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2670
             Project: Magnolia
          Issue Type: Bug
          Components: core
    Affects Versions: 4.0.1, 4.0
            Reporter: Fabrizio Giustina
            Assignee: Philipp Bracher [old account - now Philipp Bärfuss]


This happens if you try to link a page which path starts with the same string 
as the context path, i.e.:
- webapp is mapped to http://server/myapp
- in magnolia you have a page /myapp/page,html
- the full url of the page is http://server/myapp/myapp/page.html

Any link to /myapp/page.html added from fckedit is converted to /page.html, 
stripping part of the url only because is similar to the context path.

This is done in SaveHandlerImpl line 467:

{noformat}
            String link = StringUtils.removeStart(src, 
MgnlContext.getContextPath());
{noformat}

The link added from fckedit doesn't have the context path from the beginning, 
so this check will remove part of the url. Removing the check will make links 
working when added from the UI, not sure if we need it to support manually 
written urls that may contain the context path








-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to