f:uri.external

This ViewHelper creates an URI for an external ressource. If you need a ViewHelper for creating a link, look at f:link.external.

Tip

If you specify an absolute URL like http:// or ftp:// you don't need to set defaultScheme.

Properties

uri

Variable type
String
Description
URL of the target page

Default value

Mandatory
Yes

defaultScheme

Variable type
String
Description
You can set the default scheme for this link, for example ftp or https
Default value
http
Mandatory
No

Examples

Example with https:

Fluid:

<f:uri.external uri="www.example.com" defaultScheme="https" />

Result:

Example with inline notation:

Fluid:

{f:uri.external(uri: 'www.example.com', defaultScheme: 'https')}

Result: