{"action":"closed","issue":{"url":"https://api.github.com/repos/forkcms/forkcms/issues/1256","labels_url":"https://api.github.com/repos/forkcms/forkcms/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/forkcms/forkcms/issues/1256/comments","events_url":"https://api.github.com/repos/forkcms/forkcms/issues/1256/events","html_url":"https://github.com/forkcms/forkcms/issues/1256","id":93531014,"number":1256,"title":"Don't redirect in AJAX-actions","user":{"login":"tijsverkoyen","id":250042,"avatar_url":"https://avatars.githubusercontent.com/u/250042?v=3","gravatar_id":"","url":"https://api.github.com/users/tijsverkoyen","html_url":"https://github.com/tijsverkoyen","followers_url":"https://api.github.com/users/tijsverkoyen/followers","following_url":"https://api.github.com/users/tijsverkoyen/following{/other_user}","gists_url":"https://api.github.com/users/tijsverkoyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tijsverkoyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijsverkoyen/subscriptions","organizations_url":"https://api.github.com/users/tijsverkoyen/orgs","repos_url":"https://api.github.com/users/tijsverkoyen/repos","events_url":"https://api.github.com/users/tijsverkoyen/events{/privacy}","received_events_url":"https://api.github.com/users/tijsverkoyen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/forkcms/forkcms/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-07T13:32:27Z","updated_at":"2015-12-21T15:53:45Z","closed_at":"2015-12-21T15:53:45Z","body":"In https://github.com/forkcms/forkcms/blob/master/src/Frontend/Modules/Search/Ajax/Livesuggest.php#L202 there is code to redirect. This is weird behaviour because this action is requested through XHR, so the response should be a decent error instead of a redirect."}}