Skip to content

Commit af62e03

Browse files
authored
fix: update page URL handling (#40393)
1 parent 2d5374d commit af62e03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ads/vendors/clickio.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ export function clickio(global, data) {
2828

2929
// base config
3030
clickioGlobal.ampMode = context.isMaster ? 1 : 2;
31-
clickioGlobal.pageUrl = global.context.location.href;
31+
clickioGlobal.ampContext = global.context;
32+
33+
// page url params
34+
clickioGlobal.pageUrl =
35+
global.context.sourceUrl || global.context.location.href;
3236
clickioGlobal.sendPageUrl = true;
3337

3438
// ad container

0 commit comments

Comments
 (0)