noosfero | profile: be case insensitive on urls (#615)
Antonio Terceiro
gitlab at gitlab.com
Mon Jun 29 16:28:45 BRT 2015
New comment for Merge Request 615
https://gitlab.com/noosfero/noosfero/merge_requests/615#note_1541148
Antonio Terceiro
I would rather handle this in the not found handler instead of just accepting all requests, using something like
```ruby
if params[:profile] && params[:profile].downcase != params[:profile]
redirect_to url.merge(profile: params[:profile].downcase)
end
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150629/32c9346e/attachment.html>
More information about the Noosfero-dev
mailing list