{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/371","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/371/comments","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/371/events","html_url":"https://github.com/alphagov/digitalmarketplace-supplier-frontend/pull/371","id":119903833,"number":371,"title":"Don’t jump down page after incorrect submission","user":{"login":"quis","id":355079,"avatar_url":"https://avatars.githubusercontent.com/u/355079?v=3","gravatar_id":"","url":"https://api.github.com/users/quis","html_url":"https://github.com/quis","followers_url":"https://api.github.com/users/quis/followers","following_url":"https://api.github.com/users/quis/following{/other_user}","gists_url":"https://api.github.com/users/quis/gists{/gist_id}","starred_url":"https://api.github.com/users/quis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quis/subscriptions","organizations_url":"https://api.github.com/users/quis/orgs","repos_url":"https://api.github.com/users/quis/repos","events_url":"https://api.github.com/users/quis/events{/privacy}","received_events_url":"https://api.github.com/users/quis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T09:42:05Z","updated_at":"2015-12-02T14:48:59Z","closed_at":"2015-12-02T12:04:16Z","pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/pulls/371","html_url":"https://github.com/alphagov/digitalmarketplace-supplier-frontend/pull/371","diff_url":"https://github.com/alphagov/digitalmarketplace-supplier-frontend/pull/371.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-supplier-frontend/pull/371.patch"},"body":"Sue found an excellent bug: https://www.pivotaltracker.com/story/show/109279212\r\n\r\n1. Click answer required on a section with multiple questions\r\n2. Answer less than all the questions on the page\r\n3. Click on save and continue\r\n\r\n**Expected**: you are back at the top of the page and see the validation masthead\r\n\r\n**Actual**: you are jumped down the page to the question for which you clicked 'answer required'\r\n\r\nThis is because the form always posts to it’s own URL. And if this url has a `#fragment` at the end of it, then this is the URL that gets posted to. Since you stay on the same page if there are any errors then the page you stay on also has the fragment, which matches the ID of the question, which is where you get jumped to.\r\n\r\nThis commit changes the HTMl to always post to the page’s own URL _without_ the fragment."},"comment":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/comments/161320581","html_url":"https://github.com/alphagov/digitalmarketplace-supplier-frontend/pull/371#issuecomment-161320581","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-supplier-frontend/issues/371","id":161320581,"user":{"login":"tombye","id":87140,"avatar_url":"https://avatars.githubusercontent.com/u/87140?v=3","gravatar_id":"","url":"https://api.github.com/users/tombye","html_url":"https://github.com/tombye","followers_url":"https://api.github.com/users/tombye/followers","following_url":"https://api.github.com/users/tombye/following{/other_user}","gists_url":"https://api.github.com/users/tombye/gists{/gist_id}","starred_url":"https://api.github.com/users/tombye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombye/subscriptions","organizations_url":"https://api.github.com/users/tombye/orgs","repos_url":"https://api.github.com/users/tombye/repos","events_url":"https://api.github.com/users/tombye/events{/privacy}","received_events_url":"https://api.github.com/users/tombye/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T14:48:59Z","updated_at":"2015-12-02T14:48:59Z","body":"Looks good to me. Once the merge conflicts are fixed: :+1: "}}