You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($this->Navbar->compareUrls(['_name' => 'route.name'])) {
// code
}
What happened
Thrown a route not found exception
What you expected to happen
find the route ;)
explanation
my route is a get only : $routes->get('/queue', ['controller' => 'Emails', 'action' => 'queue'], 'route.name');
and is in the "top menu"
When i submit a form (POST, PATCH, PUT), the UrlComparerTrait create a Request with normalized url : $url = Router::parseRequest(new ServerRequest($this->_removeRelative($url)));
But this request construction use the current environment and set the method to POST.
The route.name with POST method don't exists.
The text was updated successfully, but these errors were encountered:
To clarify a bit, the issue occurs when you have an URL that can be respond to both GET and POST request, and you have a GET "version" in the navigation bar?
This is a (multiple allowed):
bug
enhancement
question
CakePHP Version: 3.8.0
Plugin Version/Branch: holt59/cakephp3-bootstrap-helpers dev-4.0.1-alpha 00ba937
What you did
What happened
Thrown a route not found exception
What you expected to happen
find the route ;)
explanation
my route is a get only :
$routes->get('/queue', ['controller' => 'Emails', 'action' => 'queue'], 'route.name');
and is in the "top menu"
When i submit a form (POST, PATCH, PUT), the UrlComparerTrait create a Request with normalized url :
$url = Router::parseRequest(new ServerRequest($this->_removeRelative($url)));
But this request construction use the current environment and set the method to POST.
The route.name with POST method don't exists.
The text was updated successfully, but these errors were encountered: