-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router returns notFound when using query parameters #14087
Comments
What is your URI source? <?php
use Phalcon\Mvc\Router;
// ...
// Use $_GET['_url'] (default)
$router->setUriSource(
Router::URI_SOURCE_GET_URL
);
// Use $_SERVER['REQUEST_URI']
$router->setUriSource(
Router::URI_SOURCE_SERVER_REQUEST_URI
); I guess it's |
I pass source to handler: |
But i've got your point and changed request uri to |
Those methods were removed in #12380, as of 4.0.x you have to pass URI to the |
Resolved in #14158 |
I have a simple router config in Phalcon 4.0:
http://my.domain/ returns something from index controller. But when i add even symbol '?' to my url (http://my.domain/?), it returns 404 page. I can't get what should i change in route and didn't found any information about routing query parameters in documentation.
P.S. I debugged $_GET when using any parameters, they are present.
I asked at discussion forum, but Emilio Degiovanni said it's probably a bug. But as i see in topics, people can use GET parameters as well, so maybe i'm just doing something wrong.
Help pls :)
The text was updated successfully, but these errors were encountered: