I’m not sure, but I don’t think this can be achieved with a before
hook. I see two options:
- A page.create:after hook that changes the slug and redirects to the new URL
- A custom pages section with its own page create logic
I’m not sure, but I don’t think this can be achieved with a before
hook. I see two options: