Project

General

Profile

Actions

Feature #3963

open

Restore previous page upon session timeout

Added by Mike McCune over 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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:

https://foreman.example.com/signo/?return_url=https%3A%2F%2Fforeman.example.com%2Fkatello%2Fuser_session%2Fnew#/products

Actions #1

Updated by Ohad Levy over 10 years ago

  • Assignee deleted (Amos Benari)
  • translation missing: en.field_release set to 2
  • Difficulty set to trivial
Actions #2

Updated by Anonymous over 10 years ago

  • Target version set to 1.9.2
Actions #3

Updated by Dominic Cleal over 10 years ago

  • translation missing: en.field_release deleted (2)
Actions #4

Updated by Daniel Lobato Garcia over 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Daniel Lobato Garcia
Actions #5

Updated by Daniel Lobato Garcia over 10 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.

Actions #6

Updated by Dominic Cleal over 10 years ago

  • Status changed from Closed to Rejected
  • Target version deleted (1.9.2)
Actions #7

Updated by Justin Sherrill about 10 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.

Actions #8

Updated by Dominic Cleal about 10 years ago

  • Assignee deleted (Daniel Lobato Garcia)
  • Difficulty deleted (trivial)
Actions

Also available in: Atom PDF