title: CKFinder 3 Returning Wrong URLs for Selected Files
body: <p>I've encountered a strange problem while integrating the ASP.NET version of CKFinder 3 on my site. I'm creating a modal instance to select a file to populate the value of a field but, instead of the expected URL of "/uploads/images/path/to/image.ext" using <a href="http://docs.cksource.com/ckfinder3/#!/api/CKFinder.Models.File-method-getUrl" rel="nofollow"><code>getUrl()</code></a> when the <a href="http://docs.cksource.com/ckfinder3/#!/api/CKFinder.Application-event-files_choose" rel="nofollow"><code>files:choose</code></a> event is fired, I am instead getting the following URL returned to me and I can't, for the life of me, figure out why or how to fix it.</p>
  
  <pre><code>http://domain.tld/path/to/ckf/connector?command=Proxy&amp;lang=en&amp;type=Images&amp;currentFolder=%2Fpath%2Fto%2F&amp;hash=[hash]&amp;fileName=image.ext`
  </code></pre>
  
  <p>If it's relevant, the <code>backend</code> info for my "uploads" directory in "Web.config" looks like this:</p>
  
  <pre><code>&lt;backend name="default" adapter="local" useProxyCommand="true"&gt;
      &lt;option name="root" value="../../../uploads" /&gt;
      &lt;option name="baseUrl" value="/uploads/" /&gt;
  &lt;/backend&gt;
  </code></pre>
  
  <p>And then the JavaScript I'm using to create the modal instance and listen for the <code>files:choose</code> event goes like this (the field I'm trying to populate is the previous sibling of the button used to create the modal):</p>
  
  <pre><code>document.getElementById("openckf").addEventListener("click",function(){
      var field=this.previousSibling;
      CKFinder.modal({
          onInit:function(finder){
              finder.on("files:choose",function(event){
                  field.value=event.data.files.first().getUrl();
              });
          }
      });
  },0);
  </code></pre>
  
  <p><strong>UPDATE:</strong> The same thing is also happening when I add CKFinder to CKEditor.</p>