Switching projects as an admin user currently dumps you back to
the Admin dashboard tab. This change fixes that by adding a 'next'
parameter to the switching URL that points to the default panel
of the current dashboard.
The redirect is to the default panel rather than the current one,
since the next tenant may not have access to the current panel
and we want to avoid kicking a user back to the login screen.
Reviewed: https:/ /review. openstack. org/23656 github. com/openstack/ horizon/ commit/ 6db859c849d522f e8d895f2eefd220 a5498dc0fd
Committed: http://
Submitter: Jenkins
Branch: master
commit 6db859c849d522f e8d895f2eefd220 a5498dc0fd
Author: Kieran Spear <email address hidden>
Date: Wed Mar 6 14:37:30 2013 +1100
Don't change dashboard on admin tenant switch
Switching projects as an admin user currently dumps you back to
the Admin dashboard tab. This change fixes that by adding a 'next'
parameter to the switching URL that points to the default panel
of the current dashboard.
The redirect is to the default panel rather than the current one,
since the next tenant may not have access to the current panel
and we want to avoid kicking a user back to the login screen.
Fixes bug #1072848.
Change-Id: I25b8c0e38945d5 db57f5bfe7bb174 cdbd66156d5