title: How to remove trailing / on root route with react-router
body: <p>I have several routes:</p>
  
  <pre><code> www.example.com/rootRoute/flags
   www.example.com/rootRoute/test
   www.example.com/rootRoute/derp
  </code></pre>
  
  <p>For the route home page I would like my route to be:</p>
  
  <pre><code> www.example.com/rootRoute
  </code></pre>
  
  <p>but react-router is forcing a / at the end so my root route is:</p>
  
  <pre><code> www.example.com/rootRoute/
  </code></pre>
  
  <p>Any idea how to fix this?</p>
  
  <pre><code> "react-router": "^4.3.1",
   "react-router-dom": "^4.3.1",
  </code></pre>
  
  <p>I've already set the path within my switch and route to the desired path but a / is always appended within the address bar.</p>
  
  <pre><code> &lt;Switch&gt;
    &lt;Route path={'/rootRoute/flags'} component={FeatureFlagsPage} /&gt;
    &lt;Route path={'/rootRoute/test'} component={DerpComponent} /&gt;
    &lt;Route path={'/rootRoute'} component={TestComponent} /&gt;
  </code></pre>
  
  <p>I expect there to be no / at the end of the root route.</p>