title: How to get the url on the magnific popup API on open event?
body: <p>How can I get the url being opened with the <a href="http://dimsemenov.com/plugins/magnific-popup/documentation.html#api" rel="nofollow">Magnific popup API</a>? I want to add it the <code>window.location.hash</code> in the open event callback:</p>
  
  <pre><code>&lt;a href="page-title" class="mfp"&gt;Lorem ipsum&lt;/a&gt;
  
  $('.mfp').magnificPopup({
  
    callbacks: {
      open: function() {
       var url = this.url
       window.location.hash += '-'+url
      }
    }
  });
  </code></pre>
  
  <p>I tried using <code>this.url</code> but no luck.</p>