title: URL's with extra slashes in route do not work with react-router
body: <p>I am using code similar to below for routing my application to different route. These routes work as expected when there is no extra slashes in the route but they tend to break if there is an extra slash.</p>
  
  <p>For exmaple: www.example.com// or www.example.com/action//Group1.
  These urls do not open any route and a blank screen appear.
  Is there a way to make these url's with extra slashes work.</p>
  
  <pre><code>import {ConnectedRouter} from 'react-router-redux';
  import {
      Route,
      Switch
  } from 'react-router-dom';
  
  &lt;ConnectedRouter history={app.history}&gt;
      &lt;div&gt;
          &lt;Switch&gt;
              &lt;Route
                exact
                path={action/:selectedGroup?`}
                render={(props) =&gt;
                  (&lt;ActionPage {...props} /&gt;)
                }
              /&gt;
              &lt;Route
                exact
                path={detail/:selectedGroup?`}
                render={(props) =&gt;
                  (&lt;DetailsPage {...props} /&gt;)
                }
              /&gt;
              &lt;Route
                exact
                path={dependency/:selectedGroup?`}
                render={(props) =&gt;
                  (&lt;DependencyPage {...props} /&gt;)
                }
              /&gt;
              &lt;Route
                exact
                path="/:selectedGroup?"
                render={(props) =&gt;
                  (&lt;HomePage {...props} /&gt;)
                }
              /&gt;
          &lt;/Switch&gt;
      &lt;/div&gt;
  &lt;/ConnectedRouter&gt;
  </code></pre>