sure ? 

URL('default', 'contacts') needs to generate 
mydomain.com/appname/default/contacts then...

Every non-shortened/non-rewritten url has

host.com/app/controller/function

an URL('default', 'contacts') combines to controller='default', 
function='contacts', so

host.com/appname/default/contacts

On Monday, September 1, 2014 9:31:11 PM UTC+2, Gael Princivalle wrote:
>
> No.
>
> Il giorno lunedì 1 settembre 2014 21:13:27 UTC+2, Niphlod ha scritto:
>>
>> are you using some url rewrite facility ?
>>
>> On Monday, September 1, 2014 8:43:02 PM UTC+2, Gael Princivalle wrote:
>>>
>>> Hello all.
>>>
>>> I've got a strange error with my menu.
>>> If I set an URL in my menu to a page name that's have the same name as 
>>> my domain name, web2py add default to my URL.
>>>
>>> For example:
>>>
>>> response.menu = [
>>>     (T('Home'), False, URL('default', 'index'), []),
>>>     (T('Contacts'), False, URL('default', 'contacts'), []),
>>>     (T('Mydomain'), False, URL('default', 'mydomain'), []),
>>> ]
>>>
>>> For Contacts URL will be:
>>> mydomain.com/contacts
>>>
>>> For Mydomain URL will be:
>>> mydomain.com/default/mydomain
>>>
>>> Is there a solution (of course I can change the page name to something 
>>> else than the domain name...) ?
>>>
>>> Thanks, 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to