Skip to content

Commit

Permalink
fixing paths once more
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarsova committed Jun 5, 2024
1 parent 0058703 commit cc2a324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/app/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function Main(props: {
}) {

let renderPuzzle = (puzzle: any) => {
return (<Link key={'/rechnenrucksack/'+puzzle.key} to={"/" + puzzle.key} className="puzzleName">
return (<Link key={puzzle.key} to={'/rechnenrucksack/'+ puzzle.key} className="puzzleName">
<div className='puzzle'><img
className="thumbnail"
src={puzzle.thumbnail}/>
Expand All @@ -22,7 +22,7 @@ export function Main(props: {

const puzzlesArray = Object.values(puzzles);

const renderPuzzleInBar = (puzzle: any) => <Link key={puzzle.key} to={"/" + puzzle.key} className="puzzleNameBar">
const renderPuzzleInBar = (puzzle: any) => <Link key={puzzle.key} to={"/rechnenrucksack/" + puzzle.key} className="puzzleNameBar">
{puzzle.name}</Link>;


Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
base: 'rechnenrucksack'
base: '/rechnenrucksack'
});

0 comments on commit cc2a324

Please sign in to comment.