Hello there !
I would like to create a URL system like Notion where you can change the page title and be redirected to the right page from the ID present in the slug. This could fix SEO problems and some issues when the user change the title of a page.
The URL could be something like that
https://mydomain.com/title-of-the-page-[$page unique ID]
I think the router part is not too complicated, my problem is for the page creation and the renaming of a page with hooks.
With the hooks, page.create:after and page.changeTitle:after I update the slug with the page unique ID but this throw an error of redirection in the panel. I can’t find any solution to redirect to the updated URL.
Is there a way to achieve this URL system ?
Thanks for your help