fix imgur reidrect

This commit is contained in:
Karsten Ng 2022-06-08 16:51:01 +08:00 committed by GitHub
parent 7ea9fdfea0
commit ce6bf10208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,8 @@ function redirectImgur() {
let farsideRimgo = farsideInstance + "/rimgo";
window.stop();
location.hostname = farsideRimgo;
let newURL = window.location.protocol + "//" + farsideRimgo + window.location.pathname + window.location.search + window.location.hash;
window.location.replace(newURL);
}
function redirectMedium() {