Skip to content
  • Benni Mack's avatar
    [TASK] Create URLs with typolink for pages with sites · 7f0174be
    Benni Mack authored
    The PageLinkBuilder now separates out into generating links
    for pages with site configuration, and without site
    configuration (= as before).
    The new link mechanism does not rely on previous hooks
    and options like config.absRefPrefix which are not necessary
    for URLs as they are always absolute.
    A new TypoScript option "typolink.language" is introduced.
    If not set, it is set to "current", and allows to link
    across pagetrees to a given site, or render a language menu
    without having to use "&L=" as additional query parameter.
     ("current" is the current language and default) is
    used to also allow to explicitly link to a different language
    if this language was configured for the site configuration
    for the site.
    As for the linking process:
    - typolink.forceAbsoluteUrl is used to generate the full
      URL to a target page
    - typolink.forceAbsoluteUrl.scheme is only applicable
      if the site base of the target does not explicitly
      define a scheme
    - If you link to a different page tree or to a different
    host/scheme, it is always treated as absolute.
    On top: If you link across page trees, the link is
    treated as external (extTarget is used).
    The next steps are to create tests and incorporate
    config.linkVars into this process.
    Resolves: #86048
    Releases: master
    Change-Id: I01b2b43efafa23ce0d256bdcd0feb35756fbe1d5
    Reviewed-by: default avatarOliver Hader <>
    Tested-by: default avatarOliver Hader <>
    Reviewed-by: default avatarSusanne Moog <>
    Tested-by: default avatarSusanne Moog <>
    Reviewed-by: default avatarBenni Mack <>
    Tested-by: default avatarBenni Mack <>
    Tested-by: default avatarTYPO3com <>