{"action":"closed","issue":{"url":"https://api.github.com/repos/JackStouffer/cookiecutter-Flask-Foundation/issues/6","repository_url":"https://api.github.com/repos/JackStouffer/cookiecutter-Flask-Foundation","labels_url":"https://api.github.com/repos/JackStouffer/cookiecutter-Flask-Foundation/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/JackStouffer/cookiecutter-Flask-Foundation/issues/6/comments","events_url":"https://api.github.com/repos/JackStouffer/cookiecutter-Flask-Foundation/issues/6/events","html_url":"https://github.com/JackStouffer/cookiecutter-Flask-Foundation/issues/6","id":148390897,"number":6,"title":"Redirect back to restricted page after login","user":{"login":"ewsterrenburg","id":1898044,"avatar_url":"https://avatars.githubusercontent.com/u/1898044?v=3","gravatar_id":"","url":"https://api.github.com/users/ewsterrenburg","html_url":"https://github.com/ewsterrenburg","followers_url":"https://api.github.com/users/ewsterrenburg/followers","following_url":"https://api.github.com/users/ewsterrenburg/following{/other_user}","gists_url":"https://api.github.com/users/ewsterrenburg/gists{/gist_id}","starred_url":"https://api.github.com/users/ewsterrenburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewsterrenburg/subscriptions","organizations_url":"https://api.github.com/users/ewsterrenburg/orgs","repos_url":"https://api.github.com/users/ewsterrenburg/repos","events_url":"https://api.github.com/users/ewsterrenburg/events{/privacy}","received_events_url":"https://api.github.com/users/ewsterrenburg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T15:04:34Z","updated_at":"2016-06-07T19:09:02Z","closed_at":"2016-06-07T19:09:02Z","body":"When opening a restricted page, I was sent to the login page as expected. After logging in however, I kept being redirected back to the index page, not back to the page I was trying to reach originally. \r\n\r\nI fixed this issue by changing line 11 in the login.html template to:\r\n\r\n`<form role=\"form\" method=\"post\" action=\"{{ url_for('.login', next=request.args.get('next')) }}\" `enctype=\"multipart/form-data\">`\r\n\r\nNo pull request since this is the first time I tried out Flask and I have no idea if this approach can have any unexpected drawbacks ;) I can send one if you like though..."}}
{"actor":{"display_login":"JackStouffer"}}