Is ConnectedRouter is not supporting basename? I simply replaced the default BrowserRouter (supporting basename) with ConnectedRouter.
Not working:
<ConnectedRouter basename="/user" history={history}>
<Route path="/auth" component={Auth} />
<Route path="/home" component={Home} />
Working:
<ConnectedRouter history={history}>
<Route path="/user/auth" component={Auth} />
<Route path="/user/home" component={Home} />
With <ConnectedRouter> you supply your own history object. You should be providing the basename option to the call that creates it.
const history = createHistory({ basename: '/user' })
Most helpful comment
With
<ConnectedRouter>you supply your ownhistoryobject. You should be providing thebasenameoption to the call that creates it.