Hi there, I'm building a service which has dynamic root routes
eg. /a, /b, /c
As the routes are not predefined, I can only be as specific as this:
page('/*', function(e){
page.redirect('URL that was clicked')
});
However this triggers a cyclical hit on the wildcard root route as the new routes (/a) satisfy the /*wildcard. Sorry if I missed it in the documentation, but is there a way of preventing the endless redirect?
Thanks,
Hi there, I'm building a service which has dynamic root routes eg. /a, /b, /c As the routes are not predefined, I can only be as specific as this:
However this triggers a cyclical hit on the wildcard root route as the new routes (
/a
) satisfy the/*
wildcard. Sorry if I missed it in the documentation, but is there a way of preventing the endless redirect? Thanks,