redirect to the new URL when loaded from the old URL

This commit is contained in:
Jesse D. McDonald 2020-05-01 04:09:35 -05:00
parent c2f8762d9f
commit 3995968928
1 changed files with 8 additions and 0 deletions

View File

@ -1260,6 +1260,14 @@ $(function (){
$(window).on('resize', fixSafariPadding);
fixSafariPadding();
}
(function() {
const match = location.href.match('^https://jessemcdonald.info/~nybble/paco_sako/(.*)');
if (match) {
/* Redirect to the new URL */
location.href = `https://pacosako.jessemcdonald.info/${match[1]}`;
}
})();
});
/* vim:set expandtab sw=3 ts=8: */