$page->url()
Returns the Url
$page->url(array|string|null $options = null): string
Parameters
| Name | Type | Default | 
|---|---|---|
| $options | arrayorstringornull | 
				
															null
									 | 
							
Return type
string
This method modifies the existing $page object it is applied to and returns it again.
Parent class
Examples
<?= $page->url() ?>
Language specific URLs
On multi-language sites you can get the URL of a page for a different language, by passing the language code.
<?= $page->url('de') ?>