title: react-router-dom basename in BrowserRouter is not working properly
body: <p>I created a ReactJs application and what to be accessible only in <em>domain.com/<strong>app</strong></em>.</p>
  
  <p>I added this to <code>index.js</code></p>
  
  <pre><code>&lt;BrowserRouter basename='/app/'&gt;
    &lt;App /&gt;
  &lt;/BrowserRouter&gt;
  </code></pre>
  
  <p>And now when I navigate between pages it works as it should (it adds <code>/app/</code> properly), ex. <code>domain.com/app/about</code>.</p>
  
  <p>But the application is still being accessible without <code>/app</code>, ex. when I type <code>domain.com/about</code> still shows the about page.</p>
  
  <p>While I want it bo be accessible only with <code>/app/</code>, and not without it.</p>