Url::paramsToString not working

Hi,

the Url::paramsToString() method seems to not be working anymore. It is referenced in the docs twice, but not documented itself.

Has this been removed in Kirby 3? And if so, how would I go about making sure that the params are using the correct separator?

Thanks!
Frederik

References to it in the docs:

  1. https://getkirby.com/docs/reference/templates/helpers/params
  2. https://getkirby.com/docs/reference/templates/helpers/param

If you use the url() method like this:

<?= url($page, ['params' => ['tag' => $tag]]) ?>

it will use the correct separator automatically.

1 Like

Great, thank you!

The paramsToString() method doesn’t exist. Don’t know where that information comes from.

It did exist in Kirby 2. Probably a leftover in the docs from Kirby 2?!

That’s what I thought at first, but couldn’t find that documented in the old docs. Anyway, it’s gone now.

1 Like