Redirect to login page when access denied

Issue #114 resolved
Pablo Buiras created an issue

When going to a URL for a specific lab and/or submission (and I assume any specific URL for a Fire screen other than the login page), Fire shows an "access denied" message. It would be more convenient if it redirected to a login page and after successful authentication redirected back to the specific page that the user wanted to go to.

Example (using this year's FAFL course instance):

If you click on this link: https://fafl-16.frs.cse.chalmers.se/admin/labs/4 it currently shows 'You are not authorized to view this page' but it should at least go here: https://fafl-16.frs.cse.chalmers.se/login

Ideally it would remember where you wanted to go and after authenticating redirect you back to /admin/labs/4.

This is standard behaviour in most websites with authentication. It is especially annoying since the email that Fire sends notifying of new submissions contains such links (to the submissions in question) but the user cannot conveniently click and login.

Comments (1)

  1. Log in to comment