Attention

This document was written for an unsupported version of Plone, Plone 2.1.x, and was last updated 1602 days ago.

For more information, see the version support policy.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Why do links become relative in the visual editor?

Why are internal hyperlinks transformed to relative when I save my text in Kupu?

« Back to Table of Contents

Warning: This item is marked as outdated.

Kupu converts absolute internal urls to relative to ensure consistent behaviour. Without the conversion links would be absolute when edited with Internet Explorer and relative when edited with Mozilla / Firefox.

When the HTML content needs to be used outside of Plone, e.g. in an e-mail, relative links should function correctly when you add a <base> tag in your pages.

Note that the links you see in Kupu's source view or "View source" of your browser may differ, since browsers may transform the content when you start editing in Kupu. Internet Explorer, for example, convert all links from relative to absolute.

Kupu can be hacked (not recommended) to disable the transformation to relative links: edit the javascript so that KupuEditor.prototype.makeLinksRelative is a function which simply returns its first parameter unchanged.