mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 05:05:17 +02:00
docker fix
This commit is contained in:
parent
1929227104
commit
4ac61bcd90
2 changed files with 2 additions and 8 deletions
|
@ -442,12 +442,6 @@ export const actions: Actions = {
|
|||
// Start with the current URL if next and previous are not provided
|
||||
let url: string = next || previous || event.url.toString();
|
||||
|
||||
let index = url.indexOf('/api');
|
||||
let newUrl = url.substring(index);
|
||||
console.log('NEW URL' + newUrl);
|
||||
url = serverEndpoint + newUrl;
|
||||
console.log('URL' + url);
|
||||
|
||||
// Replace or add the page number in the URL
|
||||
if (url.includes('page=')) {
|
||||
url = url.replace(/page=\d+/, `page=${page}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue