mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
95e61f63f7
commit
acc1521929
@ -403,6 +403,11 @@ function handleRedirectTo(): void {
|
||||
const queryParams = locationService.getSearch();
|
||||
const redirectToParamKey = 'redirectTo';
|
||||
|
||||
if (queryParams.has('auth_token')) {
|
||||
// URL Login should not be redirected
|
||||
window.sessionStorage.removeItem(RedirectToUrlKey);
|
||||
}
|
||||
|
||||
if (queryParams.has(redirectToParamKey) && window.location.pathname !== '/') {
|
||||
const rawRedirectTo = queryParams.get(redirectToParamKey)!;
|
||||
window.sessionStorage.setItem(RedirectToUrlKey, encodeURIComponent(rawRedirectTo));
|
||||
|
Loading…
Reference in New Issue
Block a user