How to call function 'separator()'?

In kirby\src\Http\Params.php there is

    /**
     * Returns the param separator according
     * to the operating system.
     *
     * Unix = ':'
     * Windows = ';'
     *
     * @return string
     */
    public static function separator(): string
    {
       //  some code, I'm leaving out here
    }

How can I call this function in a snippet ot template file?

Kirby\Http\Params::separator()

or you pass the params to the url() helper

url('blog/tag', ['params' => ['tag' => $tag]])

This will automatically take care of adding the correct param separator

1 Like

Thank you very much. :grinning:

This runs very well, e.g. for a navigation to a blog overview page.