Feature #3963
openRestore previous page upon session timeout
Description
When a user's webui session times out we need to take the user back to the previous page they were using
Katello had this feature and we lost it when moving to Foreman as our main UI container.
Signo utilized a ?return_url= parameter, eg:
Updated by Ohad Levy over 11 years ago
- Assignee deleted (
Amos Benari) - Translation missing: en.field_release set to 2
- Difficulty set to trivial
Updated by Dominic Cleal over 11 years ago
- Translation missing: en.field_release deleted (
2)
Updated by Daniel Lobato Garcia over 11 years ago
- Status changed from New to Assigned
- Assignee set to Daniel Lobato Garcia
Updated by Daniel Lobato Garcia over 11 years ago
- Status changed from Assigned to Closed
We are already doing this by saving the previous page users are at session[:original_uri] after clearing the session and redirecting (read carefully the order this code is executed).
1. resets current session
2. redirect to login_users_path
3. line 164, session is { :original_uri => 'whatever' }
https://github.com/theforeman/foreman/blob/develop/app/controllers/application_controller.rb#L164
and then we just redirect to it on successful login:
https://github.com/theforeman/foreman/blob/develop/app/controllers/users_controller.rb#L113
So I'm closing this unless this ticket meant something different I didn't understand.
Updated by Dominic Cleal over 11 years ago
- Status changed from Closed to Rejected
- Target version deleted (
1.9.2)
Updated by Justin Sherrill about 11 years ago
- Status changed from Rejected to New
Reopening as katello's URLs aren't properly redirected to. Our use of angular and hashtags mean that urls such as:
/katello/content_views/#/content_views
end up being redirected to:
/katello/content_views/
which is a blank page. We added support long ago in katello and had to do some javascript work to make it send up the 'actual' url to the server so it could redirect properly.
Updated by Dominic Cleal about 11 years ago
- Assignee deleted (
Daniel Lobato Garcia) - Difficulty deleted (
trivial)