1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Merge pull request #126 from seanmorley15/development

fix subdomain
This commit is contained in:
Sean Morley 2024-07-12 10:07:56 -04:00 committed by GitHub
commit 96c466c8b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {