URLs
Modify all URLs
Kirby::plugin('my/urls', [
  'components' => [
    'url' => function (Kirby $kirby, string|null $path = null, array|string|null $options = null): string {
        $original = $kirby->nativeComponent('url');
        return $original($kirby, $path, $options);
    }
  ]
]);Parameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $kirbyrequired | Kirby\Cms\App | no default value | |
| $path | stringornull | null | URL path | 
| $options | arrayorstringornull | null | Array of options for the Uri class | 
Return type
string