Route to Escape SPA?
I am wondering if there is a way to specify a route (<Router><Route path='...' />...</Router>) such that it "escapes" the SPA and just loads an html page from the public directory? If so, where can I look for those docs?
1 Reply
Thanks Tito, that'd be easy 😄
That works, except that hitting back doesn't get me to the prior page. Investigating.
(but refresh rights things)
It appears that at least in part, I have run afoul of my catch all and using an anchor with a href
<Route path='*' component={NotFound} />
. Removing href seems to resolve the problem and I just need to restyle to retain appearance.
Perfect advice, thank you Tito!