push a new route only triggers URL change but not location change

JavaScript
<ConnectedRouter history={history}>
    <BrowserRouter>
      <Switch>
        <PrivateRouter exact path="/" component={App} />
        <Route exact path="/login" component={Login} />
        <Route component={NotFound} />
     </Switch>
   <BrowserRouter>
</ConnectedRouter> <Switch>
      <>
        <Route path="/">
          <Welcome />
        </Route>
        <Redirect to="/" />
      </>
 </Switch>
Source

Also in JavaScript: