Hi all,
I have some strange problem with routes sub_domain:
Following code:
url_for(''member", sub_domain="weko") generates http://weko.example.com:5000/
That is exactly what required.
But if the controller name begins with a / to turn-off route-memory
url_for(''/member", sub_domain="name") generates /?sub_domain=weko
Are there any fix?
Thanks in advance for any help
T
Version of routes 1.7.2
My routes config
map = Mapper(directory=config['pylons.paths']['controllers'],
always_scan=config['debug'])
# Turn on sub-domain support
map.sub_domains = True
# Ignore the www sub-domain
map.sub_domains_ignore = ['www',]
map.connect(':action', controller='member',
conditions=dict(sub_domain=True))
map.connect(':controller/:action/:id')
map.connect('*url', controller='template', action='view')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---