spck-issues icon indicating copy to clipboard operation
spck-issues copied to clipboard

url routing for spa dev

Open zekenaulty opened this issue 3 years ago • 0 comments

I'm building a small SPA using pure javascript, and there is nothing I can find to enable the preview to route 404s back to index.html.

I can work around this, but it would be really nice to have support for simple refirect definitions for SPA development.

I did find a stackoverflow with no answer detailing the same issue, or similar issue, with angularjs and ui-router.

Incase it isn't clear, usually there is a server component, that handles this, and hosting on github pages for example you can create a 404.html that can handles the redirect. i.e something like this https://raw.githubusercontent.com/zekenaulty/zekenaulty.github.io/main/404.html

I'm using the android app.

zekenaulty avatar Feb 26 '23 13:02 zekenaulty