{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/2294","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/2294/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/2294/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/2294/events","html_url":"https://github.com/jekyll/jekyll/pull/2294","id":32757180,"number":2294,"title":"Add option to avoid making directories for post permalinks that don't end in .html","user":{"login":"akalin","id":425576,"avatar_url":"https://avatars.githubusercontent.com/u/425576?v=3","gravatar_id":"","url":"https://api.github.com/users/akalin","html_url":"https://github.com/akalin","followers_url":"https://api.github.com/users/akalin/followers","following_url":"https://api.github.com/users/akalin/following{/other_user}","gists_url":"https://api.github.com/users/akalin/gists{/gist_id}","starred_url":"https://api.github.com/users/akalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akalin/subscriptions","organizations_url":"https://api.github.com/users/akalin/orgs","repos_url":"https://api.github.com/users/akalin/repos","events_url":"https://api.github.com/users/akalin/events{/privacy}","received_events_url":"https://api.github.com/users/akalin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll/labels/Feature","name":"Feature","color":"1d870c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-05-03T23:16:29Z","updated_at":"2015-01-17T22:51:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jekyll/jekyll/pulls/2294","html_url":"https://github.com/jekyll/jekyll/pull/2294","diff_url":"https://github.com/jekyll/jekyll/pull/2294.diff","patch_url":"https://github.com/jekyll/jekyll/pull/2294.patch"},"body":"The current behavior is that if a post's permalink doesn't end in .html, a directory is made with the permalink path and the post is put into index.html in that directory. This is undesirable if the web server is already set up to redirect e.g. /foo to /foo.html.\r\n\r\nSo I added the option use_post_dirs to control this behavior. If true, it does the current behavior, but if false, it simply appends .html to the permalink path.\r\n\r\nAlso modified the serve command to emulate a web server that does the /foo -> /foo.html redirection when necessary.\r\n\r\nLet me know if there is another better way to do this!"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/70388044","html_url":"https://github.com/jekyll/jekyll/pull/2294#issuecomment-70388044","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/2294","id":70388044,"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":false},"created_at":"2015-01-17T22:51:51Z","updated_at":"2015-01-17T22:51:51Z","body":"Can you please write a Cucumber test for this as well to ensure both work?"}}