I had the same problem when I tried to override the /media/pages
route (see this post). I could solve it with a route:before hook. This might work here, too!?
EDIT: Unfortunately this does not work for the panel, because you can’t make a server-side redirect on an ajax request (I guess).