title: React reload page by clicking on same link
body: <p>I have my webpage as below:-
  <a href="https://i.stack.imgur.com/Rgt03.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rgt03.png" alt="enter image description here" /></a></p>
  <p>Now if i click on complete inventory link when i was on another page then am redirected, but if i need to reload the page by clicking on the same link. Now if i used window.location.reload(), it worked when i clicked on the link but if i navigated to another link then clicking on the 'complete inventory' link didn't redirect me back to this page, but the same page kept on loading on which i was. I used below code but its not working:-</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>            &lt;ul className='menu'&gt;
                  &lt;li className="navbar-item"&gt;
                      &lt;Link to="/inventory" onClick={() =&gt; window.location.reload()} className="nav-link"&gt;Complete Inventory&lt;/Link&gt;
                  &lt;/li&gt;
                  &lt;li className="navbar-item"&gt;
                      &lt;Link to="/inventory/clusters" onClick={() =&gt; window.location.reload()} className="nav-link"&gt;Inventory based on cluster&lt;/Link&gt;
                  &lt;/li&gt;
                  &lt;li className="navbar-item"&gt;
                      &lt;Link to="/inventory/clusters/servertype" onClick={() =&gt; window.location.reload()} className="nav-link"&gt;Inventory based on cluster and server type&lt;/Link&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
        &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Anyone has idea how to achieve this?</p>