Skip to content

Commit

Permalink
Merge pull request #126 from seanmorley15/development
Browse files Browse the repository at this point in the history
fix subdomain
  • Loading branch information
seanmorley15 authored Jul 12, 2024
2 parents 0a8d52f + 34f26b3 commit 96c466c
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 96c466c

Please sign in to comment.