Skip to content

Commit

Permalink
validating
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Aug 21, 2024
1 parent d28c065 commit 97455a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/GameLandscape.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ const GameLandscape = () => {

function displayLevelInfo(levelIndex) {
const redirect = basename;
if (basename === "/") {
console.log(`displayLevelInfo basename: ${basename}`);
if (basename === "/") {
window.location.href = `${redirect}game-level?level=${levelIndex + 1}`;
} else {
window.location.href = `${basename}/game-level?level=${levelIndex + 1}`;
Expand Down

0 comments on commit 97455a9

Please sign in to comment.