From 5c7875382818d5725b9a7d2c928336e48f60ae78 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Mon, 22 Nov 2021 19:23:20 -0700 Subject: [PATCH] Fix bug regarding page redirection --- public/scripts/manage.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/scripts/manage.js b/public/scripts/manage.js index 651047e..5482569 100644 --- a/public/scripts/manage.js +++ b/public/scripts/manage.js @@ -51,7 +51,7 @@ CATEGORIES.push(new Category( row.appendChild(spacerCell); }, async function addSeason() { - window.location.href = "manage/addseason"; + window.location.href = "/manage/addseason"; }, async function editSeason() { @@ -85,7 +85,7 @@ CATEGORIES.push(new Category( row.appendChild(spacerCell); }, async function addSport() { - window.location.href = "manage/addsport"; + window.location.href = "/manage/addsport"; }, async function editSport() { @@ -136,7 +136,7 @@ CATEGORIES.push(new Category( row.appendChild(sportCell); }, async function addDivision() { - window.location.href = "manage/adddivision"; + window.location.href = "/manage/adddivision"; }, async function editDivision() { @@ -179,7 +179,7 @@ CATEGORIES.push(new Category( row.appendChild(sportCell); }, async function addTeam() { - window.location.href = "manage/addteam"; + window.location.href = "/manage/addteam"; }, async function editTeam() { @@ -268,7 +268,7 @@ CATEGORIES.push(new Category( row.appendChild(dateCell); }, async function addGame() { - window.location.href = "manage/addgame"; + window.location.href = "/manage/addgame"; }, async function editSeason() {