Change default module route
- kevin.waterson@gmail.com
- Member | 81
I have updated the app/Router file as follows, and this works for http://example.com/default/default, however, does not work for http://example.com/ and gives an error.
Nette\Application\BadRequestException #404
No route for HTTP request
My goals is to have a routing map for <module_name>/<presenter>/<action>/<id> with the default presenter, and action being Default.
- kevin.waterson@gmail.com
- Member | 81
The error persists.
Nette\Application\BadRequestException #404
No route for HTTP request
- kevin.waterson@gmail.com
- Member | 81
Changing the route to this:
With the module as optional also, then forwards to http://example.com/default/default.
Is it possible to not show the /default/default in the url?
Thanks,
Kevin
Last edited by kevin.waterson@gmail.com (2019-10-29 09:38)