Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Uri.external ViewHelper <f:uri.external>
A ViewHelper for creating URIs to external targets. Currently the specified URI is simply passed through.
Examples
Default
<f:uri.external uri="https://www.typo3.org" />
Copied!
https://www.typo3.org
Custom default scheme
<f:uri.external uri="typo3.org" defaultScheme="ftp" />
Copied!
ftp://typo3.org
Go to the source code of this ViewHelper: Uri\ExternalViewHelper.php (GitHub).
Arguments
The following arguments are available for the uri.external ViewHelper:
defaultScheme
-
- Type
- string
- Default
- 'https'
scheme the href attribute will be prefixed with if specified $uri does not contain a scheme already
uri
-
- Type
- string
- Required
- 1
target URI