@@ -243,7 +243,7 @@ function convertPublicationsToFile(feed, path, mainPath, currentUrl)
243243 const _base64 = base64 ( resolveUrl ( currentUrl , self . href ) ) ;
244244
245245 group . mainPath = mainPath ;
246- group . path = p . join ( path , _base64 ) ;
246+ group . path = serverClient . fixStart ( p . join ( path , _base64 ) ) ;
247247
248248 opds . addPathName ( _base64 , group . metadata . title ) ;
249249 }
@@ -409,7 +409,7 @@ function parseUrls(feed, path, mainPath, currentUrl)
409409 const navigation = feed . navigation [ i ] ;
410410 const _base64 = base64 ( resolveUrl ( currentUrl , navigation . href ) ) ;
411411
412- navigation . path = p . join ( path , _base64 ) ;
412+ navigation . path = serverClient . fixStart ( p . join ( path , _base64 ) ) ;
413413 navigation . mainPath = mainPath ;
414414 navigation . differentHost = differentHost ( currentUrl , navigation . href ) ? navigation . href : false ;
415415
@@ -427,7 +427,7 @@ function parseUrls(feed, path, mainPath, currentUrl)
427427 {
428428 const _base64 = base64 ( resolveUrl ( currentUrl , pagination . href ) ) ;
429429
430- pagination . path = p . join ( p . dirname ( path ) , _base64 ) ;
430+ pagination . path = serverClient . fixStart ( p . join ( p . dirname ( path ) , _base64 ) ) ;
431431 pagination . mainPath = mainPath ;
432432
433433 opds . addPathName ( _base64 , opds . pathName ( p . basename ( path ) ) ) ;
@@ -449,7 +449,7 @@ function parseUrls(feed, path, mainPath, currentUrl)
449449 const rel = getRel ( link . rel ) ;
450450 const _base64 = base64 ( resolveUrl ( currentUrl , link . href ) ) ;
451451
452- link . path = p . join ( p . dirname ( path ) , _base64 ) ;
452+ link . path = serverClient . fixStart ( p . join ( p . dirname ( path ) , _base64 ) ) ;
453453 link . mainPath = mainPath ;
454454 link . active = rel == 'self' ? true : false ;
455455
@@ -521,7 +521,7 @@ function getPath(item, currentUrl, mainPath)
521521 if ( isOpdsCatalog ( link . type ) )
522522 {
523523 const _base64 = base64 ( resolveUrl ( currentUrl , link . href ) ) ;
524- link . path = p . join ( mainPath , _base64 ) ;
524+ link . path = serverClient . fixStart ( p . join ( mainPath , _base64 ) ) ;
525525
526526 opds . addPathName ( _base64 , ( link . title || link . name || item . title || item . name || opds . pathName ( p . basename ( mainPath ) ) ) ) ;
527527
0 commit comments