title: React refresh redirects to home with same url of the where page refreshed
body: <p>I have react router dom to route from one component to another component. Mention the code below that am using for the routing inbetween the components.</p>
  <pre class="lang-js prettyprint-override"><code>&lt;Router&gt;
        &lt;Switch&gt;
          &lt;Route path=&quot;/&quot; component={Language} exact /&gt;
          &lt;Route path=&quot;/termsandconditions&quot; component={TermsConditions} exact /&gt;
        &lt;/Switch&gt;
  &lt;/Router&gt;
  </code></pre>
  <p>The actual problem in when I am in the url <code>/termsandconditions</code>, I refreshed the page it will redirect to the <strong>Language component</strong> with the url of <code>/termsandconditions</code>, If the URL is in <code>/termsandconditions</code> the <strong>TermsConditions component</strong> would get render while refresh the page.</p>
  <p>Any solution for this while refreshing the page. It's would stayed in the component of the current URL.</p>