Redirect to created page

I have a front end form for page creation with some data, when submitting it, it creates the page but then returns to that page creation page again. How do I redirect to the newly created page after the form has been submitted?


In the controller of wherever you handle the form submission, add a redirect to the new page after it has been successfully created.

Ok, I’ve got it to work-ish, however it redirects to the absolute path so i end up with

I’m using


Oops, used go($p->uri()); instead, works a charm. Thank you Sonja.