Change page URL method

Hi,

how can I change programatically URL of the page without changing its UID? Essentially the same thing as you’d do in the panel after clicking on “Change URL” but from code.

Thanks in advance for advices.

Oleg

You can do this with $page->move($uid): https://getkirby.com/docs/cheatsheet/page/move

1 Like