{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/74","repository_url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack","labels_url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/74/comments","events_url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/74/events","html_url":"https://github.com/cloudfoundry/staticfile-buildpack/pull/74","id":151576841,"number":74,"title":"Option to enable html5 push state","user":{"login":"masone","id":2797,"avatar_url":"https://avatars.githubusercontent.com/u/2797?v=3","gravatar_id":"","url":"https://api.github.com/users/masone","html_url":"https://github.com/masone","followers_url":"https://api.github.com/users/masone/followers","following_url":"https://api.github.com/users/masone/following{/other_user}","gists_url":"https://api.github.com/users/masone/gists{/gist_id}","starred_url":"https://api.github.com/users/masone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masone/subscriptions","organizations_url":"https://api.github.com/users/masone/orgs","repos_url":"https://api.github.com/users/masone/repos","events_url":"https://api.github.com/users/masone/events{/privacy}","received_events_url":"https://api.github.com/users/masone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T08:19:02Z","updated_at":"2016-04-28T08:19:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/pulls/74","html_url":"https://github.com/cloudfoundry/staticfile-buildpack/pull/74","diff_url":"https://github.com/cloudfoundry/staticfile-buildpack/pull/74.diff","patch_url":"https://github.com/cloudfoundry/staticfile-buildpack/pull/74.patch"},"body":"The `nginx.conf` now has an additional rewrite rule that is active when `pushstate: enabled` is present in the `Staticfile`. It rewrites all requests that don't match a file on disk to the root, which in turn points to the index file. Works for me, but as I'm no nginx expert, please give it a thorough review. \r\n\r\nThis enables us to deploy static apps that rely on HTML5 push state, where all requests should be routed to the index file (eg. an angular application).\r\n\r\nEven though I think this is a very frequent use case, I did not find a specific buildpack for it. Happy if you point me to an existing one and don't want to support this in `staticfile-buildpack`.\r\n\r\n* [x] I have viewed signed and have submitted the Contributor License Agreement\r\n* [x] I have made this pull request to the `develop` branch"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/comments/215347207","html_url":"https://github.com/cloudfoundry/staticfile-buildpack/pull/74#issuecomment-215347207","issue_url":"https://api.github.com/repos/cloudfoundry/staticfile-buildpack/issues/74","id":215347207,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T08:19:07Z","updated_at":"2016-04-28T08:19:07Z","body":"We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/118545199."}}