Skip to content

Commit

Permalink
fix subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Jul 12, 2024
1 parent fa57209 commit 34f26b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/adventures/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 34f26b3

Please sign in to comment.