title: Ant Design Pro: how to redirect route keeping query parameters
body: <p>My user will receive a link with a key that is unique to them that will direct them to a step form. When they come into the step form I want to redirect them to the first step automatically inside the router.config.
  i.e. they will receive a url that looks like:</p>
  
  <pre><code>https://example.com/register/user/sales?key=1234
  </code></pre>
  
  <p>and they must be redirected to:</p>
  
  <pre><code>https://example.com/register/user/sales/account?key=1234
  </code></pre>
  
  <p>However once my user is redirected the query parameter "?key=1234" is lost.
  How do I fix this?</p>
  
  <p>I've set up router.config as follows:</p>
  
  <pre><code>export default [{
      path: '/register',
      component: '../layouts/RegisterLayout',
      routes: [{
          path: '/register',
          redirect: '/register/user'
      }, {
          path: '/register/user',
          name: 'user',
          component: './Register/user'
      }, {
          path: '/register/user/:division',
          name: 'user',
          component: './Register/User',
          hideChildrenInMenu: true,
          routes: [{
              path: '/register/user/:division',
              redirect: '/register/user/:division/account'
          }, {
              path: '/register/user/:division/account',
              name: 'account',
              component: './Register/User/Step1CreateAccount'
          }, {
              path: '/register/user/:division/details',
              name: 'details',
              component: './Register/User/Step2UserDetails'
          }]
    }]
  }]
  </code></pre>