mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-31 02:39:38 +02:00
fix subdomain
This commit is contained in:
parent
fa57209127
commit
34f26b36dd
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue