Changes to try and get league infromation in. Still a work in progress

This commit is contained in:
Lucas Patenaude
2024-04-13 15:09:24 -06:00
parent edd7d17f42
commit f142b8e285
4 changed files with 83 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
function redirectToLeaguePage(leagueName, leagueID) {
function redirectToLeaguePage(leagueID) {
// Append the league name to the URL
var url = "/league/" + leagueName.toLowerCase().replace(/\s+/g, '-');
var url = "/league/" + leagueID;
// Redirect to the league page
window.location.href = url;