title: CKFinder 3 adds extra / in path
body: <p>I've defined some resource types in CKFinder 3. From my <code>config.php</code>, here are the back end and resource type definitions:</p>
  
  <pre><code>$config['backends'][] = [
      'name' =&gt; 'default',
      'adapter' =&gt; 'local',
      'baseUrl' =&gt; '/images',
      'root' =&gt;     '/var/www/mysite/images',
      'chmodFiles' =&gt; 0640,
      'chmodFolders' =&gt; 0750,
      'filesystemEncoding' =&gt; 'UTF-8'
  ];
  
  $config['resourceTypes'][] = [
      'name' =&gt; 'Images',
      'maxSize' =&gt; "2M",
      'url' =&gt; '/images',
      'allowedExtensions' =&gt; 'gif,jpeg,jpg,png,pdf',
      'backend' =&gt; 'default'
  ];
  </code></pre>
  
  <p>When I use one to select an image in CKEditor (using the standard <code>image2</code> plugin), it adds a trailing slash after the <code>baseURL</code> and before the rest of the path. Browsing and uploading all works correctly, and I can see that internally it's not using extra slashes on folder or file names, yet when I select an image from there in CKEditor, it gains this extra slash:</p>
  
  <p><a href="https://i.stack.imgur.com/N27Wf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N27Wf.png" alt="CKEditor screen shot"></a></p>
  
  <p>The URL of the selected image should be <code>/images/apitest/butterfly.png</code>, but it's returning <code>/images//apitest/butterfly.png</code></p>
  
  <p>I can see that this does not happen on the CKEditor site demos, but I can't see that I'm doing anything different.</p>
  
  <p>It may be that this is happening in other places, but it's common for double-slashes in URLs to be ignored, so it may not be causing any obvious problems.</p>