title: Reload the page using sammy.js
body: <p>I am using sammy.js for single page application in asp.net mvc. <br/> Everything is fine, but I am facing one problem which is that I can not reload the page. <br/> For example When I am in the dashboard my URL is </p>
  
  <pre><code>http://localhost:1834/#/Home/Index?lblbreadcum=Dashboard
  </code></pre>
  
  <p><strong>layout.cshtml</strong></p>
  
  <pre><code> &lt;script&gt;
      $(function () {
  
          var routing = new Routing('@Url.Content("~/")', '#page', 'welcome');
  
          routing.init();
  
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>routing.js</strong></p>
  
  <pre><code>var Routing = function (appRoot, contentSelector, defaultRoute) {
  
  function getUrlFromHash(hash) {
  
      var url = hash.replace('#/', '');
      if (url === appRoot)
          url = defaultRoute;
  
      return url;
  }
  
  return {
  
      init: function () {
          Sammy(contentSelector, function () {
  
  
              this.get(/\#\/(.*)/, function (context) {
                  var url = getUrlFromHash(context.path);
  
                  context.load(url).swap();
  
              });
  
          }).run('#/');
      }
  };
  }
  </code></pre>
  
  <p>I want to reload the page by clicking the dashboard menu/link. But click event not firing because link is not changing. But if I want to go another page then it is fine. Please help me out. Thanks.</p>