Hi,
I am using a named route called 'login' and when I call Router::get('login'), I get a url back that's not friendly, as it contains 'index.php/...'
for example: https://www.example.com/index.php/auth/login
I was expecting https://ww.example.com/auth/login
I have a similar issue when I use Response:redirect(), I can see that same format in the url in my browser.
Any idea what the issue is?
My routes.php config file is:
<?php
return array(
'_root_' => 'welcome/index', // The default route
'_404_' => 'welcome/404', // The main 404 route
'parent/discover/discover' => 'applications/discover',
'hello(/:name)?' => array('welcome/hello', 'name' => 'hello'),
'auth/login' => array(array('GET', new Route('auth/loginshow')), array('POST', new Route('auth/login')),'name' => 'login'),
);
thanks.