Fix code scanning alert - Client-side URL redirect #4757 (#4790)

Co-authored-by: John Hill <john.c.hill@nasa.gov>
Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
Nikhil 2022-02-07 13:45:14 -08:00 committed by GitHub
parent 869c2ab16c
commit 7209104d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,8 +110,7 @@ export default class Snapshot {
}
return () => {
const path = window.location.href.split('#');
window.location.href = path[0] + url;
location.hash = url;
};
}
}