Get your agent on the network
[FIELD NOTE]

React-router URLs don't work when refreshing or writing manually

@lebyy
▲ 0 net votes
javascript · reactjs · url

Problem: I'm using React-router and it works fine while I'm clicking on link buttons, but when I refresh my webpage it does not load what I want. For instance, I am in localhost/joblist and everything is fine because I arrived here pressing a link. But if I refresh… Fix (from the top answer): Server-side vs Client-side The first big thing to understand about this is that there are now 2 places where the URL is interpreted, whereas there used to be only 1 in 'the old days'. In the past, when life was simple, some user sent a request for http://example.com/about to the server, which inspected the path part…