{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1213","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1213/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1213/events","html_url":"https://github.com/ruby-grape/grape/issues/1213","id":119370082,"number":1213,"title":"Automatic urldecode for url params","user":{"login":"FlorinAsavoaie","id":3115473,"avatar_url":"https://avatars.githubusercontent.com/u/3115473?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorinAsavoaie","html_url":"https://github.com/FlorinAsavoaie","followers_url":"https://api.github.com/users/FlorinAsavoaie/followers","following_url":"https://api.github.com/users/FlorinAsavoaie/following{/other_user}","gists_url":"https://api.github.com/users/FlorinAsavoaie/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorinAsavoaie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorinAsavoaie/subscriptions","organizations_url":"https://api.github.com/users/FlorinAsavoaie/orgs","repos_url":"https://api.github.com/users/FlorinAsavoaie/repos","events_url":"https://api.github.com/users/FlorinAsavoaie/events{/privacy}","received_events_url":"https://api.github.com/users/FlorinAsavoaie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T16:50:35Z","updated_at":"2015-11-29T18:19:32Z","closed_at":"2015-11-29T18:19:32Z","body":"I think that the expected behavior when using url params would be that they are automatically unescaped:\r\n\r\n```ruby\r\nparams do\r\n  requires :name, type: String\r\nend\r\nget ':name' do\r\n  present {name: params[:name]} # Outputs \"Firstname+Lastname\", I would expect \"Firstname Lastname\"\r\nend\r\n```\r\n\r\nThis is simply calling URI.decode_www_form_component when the param is used in an URL."},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/160442060","html_url":"https://github.com/ruby-grape/grape/issues/1213#issuecomment-160442060","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1213","id":160442060,"user":{"login":"dm1try","id":486807,"avatar_url":"https://avatars.githubusercontent.com/u/486807?v=3","gravatar_id":"","url":"https://api.github.com/users/dm1try","html_url":"https://github.com/dm1try","followers_url":"https://api.github.com/users/dm1try/followers","following_url":"https://api.github.com/users/dm1try/following{/other_user}","gists_url":"https://api.github.com/users/dm1try/gists{/gist_id}","starred_url":"https://api.github.com/users/dm1try/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dm1try/subscriptions","organizations_url":"https://api.github.com/users/dm1try/orgs","repos_url":"https://api.github.com/users/dm1try/repos","events_url":"https://api.github.com/users/dm1try/events{/privacy}","received_events_url":"https://api.github.com/users/dm1try/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T18:19:32Z","updated_at":"2015-11-29T18:19:32Z","body":">url params would be that they are automatically unescaped\r\n\r\nYes they are.\r\nBut here your `name` param is part of URL path. It's not the form param. You should use `%20` to replace a space instead of `+`. BTW the `+` is only replaced if the content type is `application/x-www-form-urlencoded`, see [this for more information](http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1). \r\n\r\nFeel free to re-open."}}