How the react-router4 outer route obtains the path of the match of the child route

the hash,location.hash used is empty

//index.js
    <Router>
      <Switch>
        <Route path="/" exact render={() =><Redirect to="/main"/>}/>
        <Route path="/login" exact component={Login} />
        <Route path="/main" component={Main} />
        <Route component={NoMatch} />
      </Switch>
    </Router>

// main.js
<div>    
<Breadcrumb> //match/main,path:/main/child,localtionpathname/main/child/:idpath
<div>
  <Header/>  
  <Breadcrumb params={this.props} />
  <Route exact path={`${match.url}/index`}  component={ Index } />
  <Route exact path={`${match.url}/base/:id`}  render={ () => <Base {...props} /> 
  <Footer />
</div>
Sep.09,2021

I tried using hash. Localtion can match the path you want / main/child/:id. The path is localtion.hash

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d066-2b0a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d066-2b0a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?