Fixed tag photo paths. Fixed affiliate prefix slash logic.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user