From 34f26b36ddb1d0ddc27138cc5d2d9d9231995f16 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Fri, 12 Jul 2024 10:07:35 -0400 Subject: [PATCH] fix subdomain --- frontend/src/routes/adventures/+page.server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/adventures/+page.server.ts b/frontend/src/routes/adventures/+page.server.ts index 685d2483..0a0c0a97 100644 --- a/frontend/src/routes/adventures/+page.server.ts +++ b/frontend/src/routes/adventures/+page.server.ts @@ -449,8 +449,8 @@ export const actions: Actions = { // Start with the provided URL or default to the filtered adventures endpoint let url: string = next || previous || '/api/adventures/filtered'; - // Extract the path starting from '/api' - const apiIndex = url.indexOf('/api'); + // Extract the path starting from '/api/adventures' + const apiIndex = url.indexOf('/api/adventures'); if (apiIndex !== -1) { url = url.slice(apiIndex); } else {