Hi all,
I've set up a react.js app to be launched using a Shiny backend. Shiny provides the backend logic & a basic structure for index.html, which includes the react.js bundle which handles everything else, including client-side request routing.
I've been testing it out locally, & I keep getting a 404 error when I try to manually navigate to a different path, or refresh the page. I believe I've narrowed this down to failed server-side request routing by implementing hash-based routing in the react app (forcing requests to be handled by the client instead), which works fine, though leads to ugly url paths.
Any suggestions how I might force Shiny to handle all requests with the same response so I can remove the ugly hash-based routing paths? My initial tests with shiny.router didn't seem to help as I couldn't find a way to generate a wildcard match.
Thanks,
Stuart