karagenit/forks

Bad Redirect Behavior

Opened this issue · 1 comments

If you make an unauthorized query from query.html, you get redirected back to query.html. This makes, sense, as the flow goes:

query > result > auth > github > auth (callback) > result

So, we either need to warn the user in result.php that they aren't authorized before we redirect them, or we need some sort of callback (in auth.php) to redirect to result.php instead of query.php.

Could redirect to index.html instead of auth.php @ result.php.