I got an URL like: http://localhost:4284/?session_expired=true Now I'm sending and AJAX-Request for something and the return should be a HTTPFound with 'http://localhost:4284/'. Cutting the URL is not the problem, but either Pyramid or the Browser are ignoring the changes, so the keep the parameter session_expired in the window location :(
Thanks
If you are returning an HTTPFound-Object, do not parse it as JSON, but rather parse is as HTML!