I’ve got a single page app which I’d like to protect with a role based redirect rule.
Individually, they both work:
I can handle the SPA push state with:
/* index.html 200
And I can handle the role based redirects with:
/* /:splat 200! Role=*
But I can’t seem to be able to combine both… Adding
Role seems to prevent the shadowing and causes everything to be replaced by
index.html, so for example this doesn’t work:
/* /index.html 200 Role=* /* /:splat 200! Role=*
Because my js files, which exist, get replaced with the content of index.html…
Is this a limitation of the system or am I just not doing it the right way?