{"action":"closed","issue":{"url":"https://api.github.com/repos/jashkenas/backbone/issues/3623","repository_url":"https://api.github.com/repos/jashkenas/backbone","labels_url":"https://api.github.com/repos/jashkenas/backbone/issues/3623/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/backbone/issues/3623/comments","events_url":"https://api.github.com/repos/jashkenas/backbone/issues/3623/events","html_url":"https://github.com/jashkenas/backbone/issues/3623","id":79409685,"number":3623,"title":"Why remove the root's trailing slash when wantPustState on IE8?","user":{"login":"houkanshan","id":657962,"avatar_url":"https://avatars3.githubusercontent.com/u/657962?v=3","gravatar_id":"","url":"https://api.github.com/users/houkanshan","html_url":"https://github.com/houkanshan","followers_url":"https://api.github.com/users/houkanshan/followers","following_url":"https://api.github.com/users/houkanshan/following{/other_user}","gists_url":"https://api.github.com/users/houkanshan/gists{/gist_id}","starred_url":"https://api.github.com/users/houkanshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houkanshan/subscriptions","organizations_url":"https://api.github.com/users/houkanshan/orgs","repos_url":"https://api.github.com/users/houkanshan/repos","events_url":"https://api.github.com/users/houkanshan/events{/privacy}","received_events_url":"https://api.github.com/users/houkanshan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-05-22T11:07:26Z","updated_at":"2017-03-18T17:25:28Z","closed_at":"2017-03-18T17:25:28Z","body":"Example:\n\n``` javascript\nBackbone.history.start({ pushState: true, root: '/root/' })\n```\n1. The browser is IE8 (no pushState)\n2. Our server will force a trailing slash, a request of `/root` will receive a redirection to `/root/`\n3. Visit `/root/aa/bb`\n\nDue to this commit d550b8b , an replaced url will be `/root#aa/bb`, then the server returns a redirection to `/root/`, which lead to an additional request, and at the same time the hash will be lost. The `/root/aa/bb` can't be reached.\n\nI've read the #2656 and #3443. I'm thinking that should the tailing slash here also be optional ? Which means:\n\n``` javascript\nBackbone.history.start({ pushState: true, root: '/root/' }) // /root/#aa/bb\nBackbone.history.start({ pushState: true, root: '/root' }) // /root#aa/bb\n```\n"}}
{"actor":{"display_login":"akre54"}}