title: Single Page Application and Inline Fancybox not working properly
body: <p>I'm trying to make a SPA and use the Hot Towel template with Durandal. So far I have successfully added a Fancybox to my spa and it shows a image</p>
  <pre><code>&lt;a class=&quot;fancybox-thumb&quot; rel=&quot;fancybox-thumb&quot; href=&quot;http://farm9.staticflickr.com/8486/8225588056_d229e8fe57_b.jpg&quot; title=&quot;Porth Nanven (MarcElliott)&quot;&gt;
          &lt;img src=&quot;IMAGEPATH&quot; alt=&quot;&quot; /&gt;
      &lt;/a&gt;
  
  
  $(document).ready(function () {
          $(&quot;.fancybox-thumb&quot;).fancybox({
              openEffect: 'elastic',
              closeEffect: 'elastic',
              helper: {
                  title: {
                      type: 'outside'
                  },
                  thumbs: {
                      width: 50,
                      height: 50
                  }
              }
          });
  
          $('#label').click(function () {
              $('#inline').fancybox();
          });
  
      });
  </code></pre>
  <p>This is working not that properly but okay;)</p>
  <p>Now I want to have a own inline in the fancybox like this:</p>
  <pre><code>&lt;div id=&quot;inline&quot; style=&quot;display:none;width:500px;&quot;&gt;
          &lt;p&gt;
              &lt;a id=&quot;add_paragraph&quot; title=&quot;Add&quot; class=&quot;button button-blue&quot; href=&quot;javascript:;&quot;&gt;Add new paragraph&lt;/a&gt;
              &amp;nbsp;
              &lt;a href=&quot;javascript:$.fancybox.close();&quot;&gt;Close&lt;/a&gt;
          &lt;/p&gt;
          &lt;p&gt;
              Lorem ipsum dolor sit amet, consectetur adipiscing elit.
          &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Now when I click: <code>&lt;a class=&quot;fancybox-thumb&quot; href=&quot;#inline&quot;&gt;Inline&lt;/a&gt;</code>, I do get the fancybox with my info. But the url is set back to localhost:2321/#inline so I'm redirected back to home but I do see the fancybox.</p>
  <p>How can I solve this, so that the fancybox is shown an the right page in my SPA and stays there?</p>