--- a/src/pyams_content/component/links/interfaces.py Thu Dec 13 14:26:46 2018 +0100
+++ b/src/pyams_content/component/links/interfaces.py Fri Dec 14 09:01:01 2018 +0100
@@ -24,7 +24,7 @@
from pyams_i18n.schema import I18nTextLineField, I18nTextField
from pyams_utils.schema import MailAddressField
from zope.interface import Attribute
-from zope.schema import Choice, TextLine, URI
+from zope.schema import Choice, TextLine, URI, Bool
from pyams_content import _
@@ -54,6 +54,13 @@
class IInternalLink(IBaseLink, IInternalReference):
"""Internal link interface"""
+ force_canonical_url = Bool(title=_("Force canonical URL?"),
+ description=_("By default, internal links use a \"relative\" URL, which tries to "
+ "display link target in the current context; by using a canonical URL, "
+ "you can display target in it's attachment context (if defined)"),
+ required=True,
+ default=False)
+
class IExternalLink(IBaseLink):
"""External link interface"""