Task #86048

Create URLs with typolink for pages with sites

Added by Oliver Hader about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2018-08-31
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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.


Related issues

Related to TYPO3 Core - Task #86054: Slug Handling does not add config.linkVars Closed 2018-08-31

Associated revisions

Revision 7f0174be (diff)
Added by Benni Mack about 1 year ago

[TASK] Create URLs with typolink for pages with sites

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-on: https://review.typo3.org/58063
Reviewed-by: Oliver Hader <>
Tested-by: Oliver Hader <>
Reviewed-by: Susanne Moog <>
Tested-by: Susanne Moog <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>
Tested-by: TYPO3com <>

History

#1 Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58063

#2 Updated by Benni Mack about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#3 Updated by Christian Kuhn about 1 year ago

  • Related to Task #86054: Slug Handling does not add config.linkVars added

#4 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF