I'm pretty sure that you could omit the default_controller from all your routes, if you wish. Obviously additional controllers should be explicit.
To shorten names, I suggest you set up aliases to your normal functions. You can do this on your webserver, or using the web2py routes file, or you can even redirect at the beginning of a controller for example. Also, take a look at the notes in the file: routes.parametric.example.py (in the dir: web2py/examples) My own experience tells me to make urls meaningful rather than short (especially for SEO), but of course this may not apply in your case. On Thursday, 6 August 2020 18:46:43 UTC+1, Warwick JC wrote: > > Hello. > I only note that this works only for the index page. > > routers = dict( > # base router > BASE=dict( > default_application='init', > ), > # app specific router > rivelar=dict( > default_controller='default', > default_function='index' > ) > > > ) > > I would also like to shorten the names for other pages as well, especially > if you have multiple controllers. How can I dpo this? > Regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/df37d15a-7d88-4584-90d3-d227d965ea99o%40googlegroups.com.