{"action":"created","issue":{"url":"https://api.github.com/repos/liqd/aula/issues/83","repository_url":"https://api.github.com/repos/liqd/aula","labels_url":"https://api.github.com/repos/liqd/aula/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/liqd/aula/issues/83/comments","events_url":"https://api.github.com/repos/liqd/aula/issues/83/events","html_url":"https://github.com/liqd/aula/issues/83","id":135457627,"number":83,"title":"Redirect 303 to page that redirects to \"Your something has created\" page that redirects too.","user":{"login":"andorp","id":3465327,"avatar_url":"https://avatars.githubusercontent.com/u/3465327?v=3","gravatar_id":"","url":"https://api.github.com/users/andorp","html_url":"https://github.com/andorp","followers_url":"https://api.github.com/users/andorp/followers","following_url":"https://api.github.com/users/andorp/following{/other_user}","gists_url":"https://api.github.com/users/andorp/gists{/gist_id}","starred_url":"https://api.github.com/users/andorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andorp/subscriptions","organizations_url":"https://api.github.com/users/andorp/orgs","repos_url":"https://api.github.com/users/andorp/repos","events_url":"https://api.github.com/users/andorp/events{/privacy}","received_events_url":"https://api.github.com/users/andorp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T15:50:10Z","updated_at":"2016-02-22T15:51:23Z","closed_at":null,"body":"From https://github.com/liqd/aula/pull/56#issuecomment-185281700 :\r\n\r\n> This should probably go to some US page, but let me just write it down here: On saving a newly created topic, we will probably have to show a page saying \"your topic has been created\", which redirects on button click or with a delay of 3 seconds.\r\n\r\nWe have to implement this requirement to avoid the [Double Submit problem](http://www.theserverside.com/news/1365146/Redirect-After-Post) which occurs when there is no redirect 303 after POST requests. We need to create (lets call) ACK pages, but in the following way:\r\n\r\nFor example:\r\n\r\n 1. GET request on \"/ideas/create\"\r\n 2. User adds content, submits POST\r\n 3. POST request on \"/ideas/create\"\r\n 4. Redirect 303 to \"/ideas/create-ack\"\r\n 5. User's browser renders the ACK page which redirects to \"/ideas\" page after 3 seconds (redirect in HTML header)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/liqd/aula/issues/comments/187240206","html_url":"https://github.com/liqd/aula/issues/83#issuecomment-187240206","issue_url":"https://api.github.com/repos/liqd/aula/issues/83","id":187240206,"user":{"login":"andorp","id":3465327,"avatar_url":"https://avatars.githubusercontent.com/u/3465327?v=3","gravatar_id":"","url":"https://api.github.com/users/andorp","html_url":"https://github.com/andorp","followers_url":"https://api.github.com/users/andorp/followers","following_url":"https://api.github.com/users/andorp/following{/other_user}","gists_url":"https://api.github.com/users/andorp/gists{/gist_id}","starred_url":"https://api.github.com/users/andorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andorp/subscriptions","organizations_url":"https://api.github.com/users/andorp/orgs","repos_url":"https://api.github.com/users/andorp/repos","events_url":"https://api.github.com/users/andorp/events{/privacy}","received_events_url":"https://api.github.com/users/andorp/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T15:51:23Z","updated_at":"2016-02-22T15:51:23Z","body":"    The Mantra\r\n    \r\n    PRG pattern can be rephrased like this:\r\n    \r\n        Never show pages in response to POST\r\n        Always load pages using GET\r\n        Navigate from POST to GET using REDIRECT\r\n"}}