From 1a272181fcf1f2ee80e66bd97db09e6cb3d2b71d Mon Sep 17 00:00:00 2001 From: PartMan <47669599+PartMan7@users.noreply.github.com> Date: Sun, 17 May 2020 07:14:50 +0530 Subject: [PATCH] Fix replay redirect (#1519) --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index ed59386cd..034a24d45 100644 --- a/js/client.js +++ b/js/client.js @@ -1317,7 +1317,7 @@ function toId() { if (isReplayLink) { if (!target || target === 'search') { target = '.'; - } else { + } else if (target.slice(0, 7) !== "battle-") { target = 'battle-' + target; } }