title: Redirection with self.location.href doesn't work
body: <p>I have a button on my application and when the user click on it, I want the page be reloaded. This is my button :</p>
  
  <pre><code>&lt;button type="button" class="btn btn-success-outline add_sol"&gt;Ajouter&lt;/button&gt;
  </code></pre>
  
  <p>It calls a javascript function :</p>
  
  <pre><code> $(function() {
  
      $(".add_sol").click(function(){
  
          var e = document.getElementById("select_sols");
          var sol = e.options[e.selectedIndex].value;
  
          var string = window.location.pathname+"_ajouter_sol"+window.location.search+"&amp;id_sol="+sol;
          alert(string); //The alert displays the right adress
  
          self.location.href(string);
  
      });
  });
  </code></pre>
  
  <p>I did an alert with the <code>string</code> variable and it displays what I want. But I don't know why the <code>self.location.href</code> doesn't work.</p>