I’m building an event directory, and in order to improve the performance, I’m nesting the events in folders by year and date (with the current 3300+ events listed under one single page the perfomance is not that good).
I want the editors to be able to create their events on the “events” page via the panel, and then move the event programmatically to the correct folder based on the year and month of the event. I’m using hooks to do this, and so far it’s working well, I only have one problem and I’m stuck:
After moving the event to the correct directory, the panel tries to open the page with the “old” url for the page, and of course it can’t find the page. Is there a way to redirect to the new URL manually on the panel after saving the page? I tried using
go() but that doesn’t work.