{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21068","labels_url":"https://api.github.com/repos/rails/rails/issues/21068/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21068/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21068/events","html_url":"https://github.com/rails/rails/issues/21068","id":98115228,"number":21068,"title":"Can't redirect to the same URL with a forward-slash appended","user":{"login":"lukehorvat","id":1034878,"avatar_url":"https://avatars.githubusercontent.com/u/1034878?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehorvat","html_url":"https://github.com/lukehorvat","followers_url":"https://api.github.com/users/lukehorvat/followers","following_url":"https://api.github.com/users/lukehorvat/following{/other_user}","gists_url":"https://api.github.com/users/lukehorvat/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehorvat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehorvat/subscriptions","organizations_url":"https://api.github.com/users/lukehorvat/orgs","repos_url":"https://api.github.com/users/lukehorvat/repos","events_url":"https://api.github.com/users/lukehorvat/events{/privacy}","received_events_url":"https://api.github.com/users/lukehorvat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T08:45:49Z","updated_at":"2015-07-30T23:11:10Z","closed_at":"2015-07-30T23:11:10Z","body":"I have the following static redirect in my `routes.rb` (Rails 4.2.3):\r\n\r\n```ruby\r\nRails.application.routes.draw do\r\n  get '/app', to: redirect('/app/')\r\nend\r\n```\r\n\r\nBasically, I want `/app` to always append a forward-slash to the URL. But it doesn't seem to do work; Rails simply doesn't perform a redirect when visiting `/app`.\r\n\r\nHowever, if I specify some *other* path to redirect from, it works!\r\n\r\n```ruby\r\nRails.application.routes.draw do\r\n  get '/ui', to: redirect('/app/')\r\nend\r\n```\r\n\r\nIn this case, Rails successfully redirects `/ui` to `/app/`.\r\n\r\nQuite strange. Have I stumbled across a bug here?"}}