Questions regarding #12815 issue: redirecting the user after auth

I would like to work on this issue, but I am total newbie with AWX, so I have some questions. @marshmalien pointed out some things I should pay attention to while working on this (PR: https://github.com/ansible/awx/pull/14170).

Which scenario has higher priority - where should the user be redirected in the following scenarios:

  • user logs out
  • clicks on a received link to “awx/templates/workflow_job_template/xyz”
  • redirection to home screen or awx/templates/workflow_job_template/xyz?
  • user logged out due to a session timeout
  • clicks on a received link to “awx/templates/workflow_job_template/xyz”
  • redirection to the last page upon login so that they may resume their last task or awx/templates/workflow_job_template/xyz

I have noticed that the redirect to the clicked link works when the user’s session expires. So, could it be that you guys wanted redirection to work only this way and there is no “rerouting issue” after all?

I appreciate any help I can get :slight_smile:
Sasa

Hi, thanks for looking into this issue. I think in both cases, if the user clicks a link, that should take priority. So after both logout and session timeout, clicking a link should direct to that link after logging in.

My thinking is this: after logout, the user isn’t actively in the middle of anything, so this is the simplest case and login should take them to the link. After session timeout, the user has chosen not to log back in and has instead taken action to click the link, this link should take priority over their previously visited page.

-Keith

Thank you for your reply, Keith!