Well then how about a nasty reg-ex in the web server?
Something like this for nginx:
rewrite ^([^\?#]*/)([^\?#\./]+)([\?#].*)?$ $1$2/$3 permanent;

http://www.nginxtips.com/add-trailing-slash-nginx/


On Tuesday, May 5, 2015 at 4:16:57 PM UTC-4, Francisco Costa wrote:
>
> nothing to explain, I just want my URL's to finish with a trail (obviously 
> excluding the ones with vars)
>
> Francisco Tomé Costa
> +351 918412636
> https://www.linkedin.com/in/franciscocosta​
>
> On Tue, May 5, 2015 at 8:46 PM, Willoughby <[email protected] 
> <javascript:>> wrote:
>
>> Maybe if you explained what problem you're trying to fix.
>>
>>
>> On Tuesday, May 5, 2015 at 3:32:20 PM UTC-4, Francisco Costa wrote:
>>>
>>> I'm not saying changing all the URL's, but if there was an argument on 
>>> the URL()
>>>
>>> Something like this: URL(trailing=True)
>>>
>>> Francisco Tomé Costa
>>> +351 918412636
>>> https://www.linkedin.com/in/franciscocosta​
>>>
>>> On Tue, May 5, 2015 at 8:06 PM, Leonel Câmara <[email protected]> 
>>> wrote:
>>>
>>>> What about stylesheets and other files?
>>>>
>>>> Do you want their URL to be  
>>>> http://www.example.com/application/static/css/styles.css/
>>>>
>>>> No and it won't work. Because a / denotes a directory.
>>>>
>>>> I guess you could do this using pattern based URL rewriting, I don't 
>>>> like it.
>>>>
>>>> -- 
>>>> 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 a topic in the 
>>>> Google Groups "web2py-users" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/web2py/EGJJ6xC4-2w/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> 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 a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/EGJJ6xC4-2w/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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