Skip to content

Commit

Permalink
making sure it is not giving errors with the dash
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Aug 21, 2024
1 parent 97455a9 commit 05622d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function App() {
<Routes>
<Route path="/" element={<Index />} />
<Route path="/detail" element={<Detail />} />
<Route path="/game-landscape" element={<GameLandscape />} />
<Route path="/game-level" element={<GameLevel />} />
<Route path="/gamelandscape" element={<GameLandscape />} />
<Route path="/gamelevel" element={<GameLevel />} />
<Route path="/skus" element={<Skus />} />
<Route path="/tutorials" element={<Tutorials />} />
</Routes>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/GameLandscape.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ const GameLandscape = () => {
const redirect = basename;
console.log(`displayLevelInfo basename: ${basename}`);
if (basename === "/") {
window.location.href = `${redirect}game-level?level=${levelIndex + 1}`;
window.location.href = `${redirect}gamelevel?level=${levelIndex + 1}`;
} else {
window.location.href = `${basename}/game-level?level=${levelIndex + 1}`;
window.location.href = `${basename}/gamelevel?level=${levelIndex + 1}`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const Index = () => {
<Link to="/skus">Copilot Business vs Enterprise</Link>
</div>
<div className="box">
<Link to="/game-landscape">Levels of Enlightenment</Link>
<Link to="/gamelandscape">Levels of Enlightenment</Link>
</div>
<div className="box">
<Link to="/tutorials">Tutorials</Link>
Expand Down

0 comments on commit 05622d2

Please sign in to comment.