Fixed tag photo paths. Fixed affiliate prefix slash logic.

This commit is contained in:
2026-02-06 23:05:52 +01:00
parent 56defe2c6f
commit e98254d444
4 changed files with 7 additions and 6 deletions

View File

@@ -35,9 +35,9 @@ export function getAffiliateSceneUrl(scene) {
const scenePath = new URL(watchUrl).pathname;
return format(scene.affiliate.parameters.dynamicScene, {
scenePath: scene.affiliate.parameters.prefixSlash
? scenePath
: scenePath.replace(/^\//, ''),
scenePath: scene.affiliate.parameters.prefixSlash === false
? scenePath.replace(/^\//, '')
: scenePath,
entryId: scene.entryId,
});
}