Scenario:
User fills form on UI and on submits it. New sub-page in Kirby panel is created (draft page).
Admin checks created page and confirms it by publishing it.
When its published - page is moved to some other place (to some sub-folder based on page type).
First that comes in mind via “changeSlug” - to change path, but how to trigger this function on moment of publishing? Any advice will be much appreciated.