title: CakePHP 3: Plugin routing without a slash at the end?
body: <p>Admin plugin / PagesController methods:</p>
  
  <ul>
  <li>home</li>
  <li>index</li>
  <li>add</li>
  <li>..</li>
  </ul>
  
  <p>removed default display method.</p>
  
  <p>Problem, i can't access url without slash at end <strong>mysite.com/admin/pages</strong> , if i try get redirect to <strong>mysite.com/admin/webroot/pages</strong> and error message</p>
  
  <p><strong>Error: WebrootController could not be found.</strong></p>
  
  <p>For all other Controllers url without slash at end works.</p>
  
  <p>Router in admin plugin / config:</p>
  
  <pre><code>Router::plugin('Admin', function ($routes) {
      $routes-&gt;connect('/login', ['controller' =&gt; 'Users', 'action' =&gt; 'login']);
      $routes-&gt;connect('/new-password', ['controller' =&gt; 'Users', 'action' =&gt; 'newPassword']);
      $routes-&gt;connect('/reset-password', ['controller' =&gt; 'Users', 'action' =&gt; 'resetPassword']);
      //$routes-&gt;connect('/pages', ['controller' =&gt; 'Pages', 'action' =&gt; 'index']);
      $routes-&gt;connect('/', ['controller' =&gt; 'Pages', 'action' =&gt; 'home']);
      $routes-&gt;fallbacks('DashedRoute');
  });
  </code></pre>