From 3995968928b6350103a3211b31b7bd36d356c09d Mon Sep 17 00:00:00 2001 From: Jesse McDonald Date: Fri, 1 May 2020 04:09:35 -0500 Subject: [PATCH] redirect to the new URL when loaded from the old URL --- js/pacosako_ui.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/pacosako_ui.js b/js/pacosako_ui.js index 4730948..aeefa3b 100644 --- a/js/pacosako_ui.js +++ b/js/pacosako_ui.js @@ -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: */