Description
Kibana version: 6.3.1
**Elasticsearch version:**6.3.1
Server OS version: Amazon Linux 2 AMI
Browser version: Chrome Version 68.0.3440.106 (Official Build) (64-bit)
Browser OS version: MacOS Sierra 10.13.4
Original install method (e.g. download page, yum, from source, etc.): yum
Describe the bug: We observed behaviour when user opens existing visualisation and left it open until his session time outs. User gets redirected to login page when he log in again is not redirected to visualisation he had opened before session time outs. This differ form behaviour on other sections like Dashboards or Monitoring etc.
Steps to reproduce:
- Set xpack.security.sessionTimeout to some short time like 20 second
- Restart kibana to get this in effect
- Login to kibana
- Open some visualisation.
- wait util your session ends and you got logged out
- Malformed login url is present in address bar like this one
https://localhost:5601/login?next=%2F#?_g=()
please note that next parameter does not contain actual next page. - Log in again
- You end up on Kibana Home page instead of last opened visualisation.
Expected behavior: We expect that user would be redirected to Visualization he had opened before he got logged out due to session timeout.
Screenshots (if relevant):
Errors in browser console (if relevant): NA
Provide logs and/or server output (if relevant): NA
Any additional context: If user open visualisation and hits save button it works correctly and when is session ends and he log in again he is redirected correctly to visualisation he had open before session ends.