Does anyone know how to get map_hyphen to work with an application name?
I have a routes.py setup as follows:
routers = dict(
BASE = dict(
default_application = "home",
default_controller = "default",
default_function = "index",
map_hyphen=True,
),
)
In my application (tutor_events), controller and function hyphen mapping work fine, so the following paths work:
/tutor_events/default/edit-details/424
/tutor_events/tutor-fee/add
And all URLs are being generated with hyphens
But if I try to go to /tutor-events/..., I get an error: invalid function (default/tutor_events)
So web2py is trying to send me on to /home/default/tutor_events