Routes not working for panel URLs?

Hi,

i am wondering why

        [
            'pattern' => ['panel/pages/news'],
            'action'  => function() {
                go('panel/site/?tab=newspool');
            }
        ],

doesn’t work when calling the given url <host>/panel/pages/news doing the same with test works as expected.

Thanks in advance, Thomas E.-E.

It’s not possible to override panel routes. You can probably achieve this with route:after hook.

thx, works like a charm!

@teichsta Could you show how you ended up achieving this? :smiley: I’d love to do exactly the same, disabling the parent page and redirecting it to a panel site tab