mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth; Fix shourt url redirect when useSessionStorageForRedirection is enabled (#94163)
Fix shourt url redirect
This commit is contained in:
parent
fb3b13b567
commit
d3d5735098
@ -409,7 +409,13 @@ function handleRedirectTo(): void {
|
||||
}
|
||||
|
||||
window.sessionStorage.removeItem(RedirectToUrlKey);
|
||||
locationService.replace(decodeURIComponent(redirectTo));
|
||||
const decodedRedirectTo = decodeURIComponent(redirectTo);
|
||||
if (decodedRedirectTo.startsWith('/goto/')) {
|
||||
// In this case there should be a request to the backend
|
||||
window.location.replace(decodedRedirectTo);
|
||||
} else {
|
||||
locationService.replace(decodedRedirectTo);
|
||||
}
|
||||
}
|
||||
|
||||
export default new GrafanaApp();
|
||||
|
Loading…
Reference in New Issue
Block a user