URLs
Modify all URLs
Kirby::plugin('my/urls', [
  'components' => [
    'url' => function (Kirby $kirby, string $path, array $options = [], Closure $originalHandler): string {
        return $originalHandler($path, $options);
    }
  ]
]);Parameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $kirby * | Kirby\Cms\App | – | Kirby instance | 
| $path | string | null | URL path | 
| $options | array|string|null | null | Array of options for the Uri class | 
| $originalHandler | Closure | null | Deprecated: Callback function to the original URL handler with $pathand$optionsas parametersUse $kirby->nativeComponent('url')inside your URL component instead. | 
Return type
string