Error 404 on any query url

Thanks @brad. I was getting frustrated that I cant explain what is happening.

I notice that if you add a dumb variable on the routes. The URL query string work but if you dont add any variable to the route URL query string not work.

I think this problem is related with this other one.

The notice error is fixed but the Functionality is not working.