Skip to content

Commit c4ff2c0

Browse files
jsadwithJacobKlein26
authored andcommitted
pageURL pull from topmostLocation (prebid#9152)
1 parent 9251c9d commit c4ff2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/kargoBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export const spec = {
225225
_getAllMetadata(bidderRequest, tdid) {
226226
return {
227227
userIDs: spec._getUserIds(tdid, bidderRequest.uspConsent, bidderRequest.gdprConsent),
228-
pageURL: bidderRequest.refererInfo && bidderRequest.refererInfo.page,
228+
pageURL: bidderRequest?.refererInfo?.topmostLocation || bidderRequest?.refererInfo?.page,
229229
rawCRB: storage.getCookie('krg_crb'),
230230
rawCRBLocalStorage: spec._getLocalStorageSafely('krg_crb')
231231
};

0 commit comments

Comments
 (0)