{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/111","repository_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from","labels_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/111/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/111/events","html_url":"https://github.com/jekyll/jekyll-redirect-from/pull/111","id":160493643,"number":111,"title":"Ensure redirect_to links produce an HTML file.","user":{"login":"parkr","id":237985,"avatar_url":"https://avatars.githubusercontent.com/u/237985?v=3","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T18:39:19Z","updated_at":"2016-06-22T17:59:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/pulls/111","html_url":"https://github.com/jekyll/jekyll-redirect-from/pull/111","diff_url":"https://github.com/jekyll/jekyll-redirect-from/pull/111.diff","patch_url":"https://github.com/jekyll/jekyll-redirect-from/pull/111.patch"},"body":"Debugging @gboone's 18f.gsa.gov site, I noticed this:\n\n```text\n$ tree _site/tags/how\\ we\\ work\n_site/tags/how\\ we\\ work/\n├── index\n├── index.html\n```\n\nI had seen something like this before due to #96. The problem is a naïve `File.basename(permalink)`, which takes `how we work` from `/tags/how we work/` instead of `/`. By appending an `index.html`, we ensure that the redirect page has the proper basename to be properly created.\n\nFixes #107."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/comments/227826241","html_url":"https://github.com/jekyll/jekyll-redirect-from/pull/111#issuecomment-227826241","issue_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/111","id":227826241,"user":{"login":"benbalter","id":282759,"avatar_url":"https://avatars.githubusercontent.com/u/282759?v=3","gravatar_id":"","url":"https://api.github.com/users/benbalter","html_url":"https://github.com/benbalter","followers_url":"https://api.github.com/users/benbalter/followers","following_url":"https://api.github.com/users/benbalter/following{/other_user}","gists_url":"https://api.github.com/users/benbalter/gists{/gist_id}","starred_url":"https://api.github.com/users/benbalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbalter/subscriptions","organizations_url":"https://api.github.com/users/benbalter/orgs","repos_url":"https://api.github.com/users/benbalter/repos","events_url":"https://api.github.com/users/benbalter/events{/privacy}","received_events_url":"https://api.github.com/users/benbalter/received_events","type":"User","site_admin":true},"created_at":"2016-06-22T17:59:25Z","updated_at":"2016-06-22T17:59:25Z","body":"LGTM, pending the merge conflict."}}
{"actor":{"display_login":"benbalter"}}