Redirect to login page when viewing pages while unauthenticated
B
Billy Keyes
If you visit a URL that requires authentication but are not authenticated, Circle shows a 404 error page. This is confusing (particularly in an enterprise installation) because it is not obvious that you need to log in and people may think that the link they followed is incorrect.
Circle should redirect to the login page and then return to the target page after authentication, showing an error only if the page actually does not exist or the user does not have permission.
CCI-I-459
v
variedwhit89
Interesting point! A 404 for authentication failures is confusing. Perhaps a redirect to a login page with a clear message like, "Please log in to view this content," would be much better. It would improve user experience, especially for larger teams. Reminds me of the frustration when I misjudge a turn in Drift Boss ! A clear signal is always needed.
j
jay@rainforestapp.com
Just want to bump this because it's still happening after 7 years. On top of the 404 page being confusing, it also has a Back button which doesn't work at all (because there's nothing to go back to) and a link to the Homepage. Even if you didn't want to take the OP's suggestion if you just showed a proper 401 page you could at least list all the different login options and then redirect back to the original URL once logged in.
K
Kelvin Tay
For Cloud, I believe we recently fixed this @ https://circleci.com/changelog/fixed-indefinite-loading-screen-when-viewing-job-page-and-unauthenticated/
Krishan Taylor
Kelvin Tay, this fix is unrelated to the request. The 404 page still requires a handful of clicks (5 if your login is with gh) to be authenticated, but that only logs you in. The session has no memory of where you originally landed, and users have to either navigate back in the history or load their original destination again. The system needs to redirect to the originally requested page automatically after login, preferably with fewer clicks to actually login from the 404 page.