From 278a2ad448f1e5c1648f1d463ed265bcdbd9c5ad Mon Sep 17 00:00:00 2001 From: Halvor Date: Fri, 18 Sep 2026 14:15:37 +0200 Subject: [PATCH 1/4] Changes for new links --- PTG/src/Header.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PTG/src/Header.test.tsx b/PTG/src/Header.test.tsx index ebc4615..903800b 100644 --- a/PTG/src/Header.test.tsx +++ b/PTG/src/Header.test.tsx @@ -9,10 +9,10 @@ describe("Header", () => { expect( screen.getByRole("link", { name: "Pokémon Team Generator" }), - ).toHaveAttribute("href", "/"); + ).toHaveAttribute("href", "/project1/"); expect(screen.getByRole("link", { name: "About" })).toHaveAttribute( "href", - "/about", + "/project1/about", ); }); }); From 6243233dc0e153de4b916ff7873ad568af681943 Mon Sep 17 00:00:00 2001 From: Halvor Date: Fri, 18 Sep 2026 14:15:55 +0200 Subject: [PATCH 2/4] New links for apache server --- PTG/src/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PTG/src/Header.tsx b/PTG/src/Header.tsx index b99af90..b86b77b 100644 --- a/PTG/src/Header.tsx +++ b/PTG/src/Header.tsx @@ -5,10 +5,10 @@ export default function Header() { return (
- +

Pokémon Team Generator

- + About
From 00fc2134f717061e15d06b8c39f94b42ff82ff2d Mon Sep 17 00:00:00 2001 From: Halvor Date: Fri, 18 Sep 2026 14:16:09 +0200 Subject: [PATCH 3/4] New links for apache server --- PTG/src/main.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PTG/src/main.tsx b/PTG/src/main.tsx index 406eaae..dcd7bc8 100644 --- a/PTG/src/main.tsx +++ b/PTG/src/main.tsx @@ -11,11 +11,11 @@ const queryClient = new QueryClient(); const router = createBrowserRouter([ { - path: "/", + path: "/project1/", element: , }, { - path: "/about", + path: "/project1/about", element: , }, { From 0133e2d93d06d99a3a5353e03a358ba3039d224c Mon Sep 17 00:00:00 2001 From: Halvor Date: Fri, 18 Sep 2026 14:16:27 +0200 Subject: [PATCH 4/4] New base --- PTG/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/PTG/vite.config.ts b/PTG/vite.config.ts index ecd0d56..8e95c4a 100644 --- a/PTG/vite.config.ts +++ b/PTG/vite.config.ts @@ -14,4 +14,5 @@ export default defineConfig({ isolate: false, setupFiles: './src/test/setup.ts', }, + base: '/project1', })