Relative URLs tend to work better in a proxied environment. The absolute links always contain the webapp (magnoliaPublic or whatever you name it) path and that may lead to problems.

Ruben

Fabrizio Giustina wrote:
Hi,
I'd like to hear some thoughts on something that I think should be
changed in the way links added with fckedit are handled.

At this moment both cms:out than cms:setNode resolve those links
making them relative to the current page. I am not sure why we decided
to create relative links instead of absolute ones, but I found several
problems with this when using virtual uri mappings or error pages
served by magnolia.
When links are resolved in pages loaded with a URI that doesn't match
the path of the node links are broken: for example if I put a link to
the home page in a 404 page served by magnolia the link will be
resolved from the location of the node of the 404 page, but the url in
the browser refers to page originally requested and it will not work.

The question is: is there any reason why we should keep relative
links? I found that absolute ones works fine for me in any situation,
so I am not sure which is the pro of relative ones (and there are a
few cons)...

changing that would be a matter of replacing
LinkUtil.convertUUIDsToRelativeLinks
with
LinkUtil.convertUUIDsToAbsoluteLinks
in Out and SetNode. I would be in favour of doing that, any thought?

fabrizio

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to