Skip to content

Commit 8cce0b8

Browse files
Readpeak Bid Adapter : remove click url encoding (prebid#11120)
* Add banner support to readpeak bid adapter * Add onBidWon callback to trigger burl * Remove .only from test * Fix merge * Revert package-lock.json version update * Remove encoding of click target URL --------- Co-authored-by: Tuomo Tilli <[email protected]> Co-authored-by: readpeaktuomo <[email protected]>
1 parent 969e417 commit 8cce0b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/readpeakBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function nativeResponse(imp, bid) {
349349
keys.cta = asset.data && asset.id === 5 ? asset.data.value : keys.cta;
350350
});
351351
if (nativeAd.link) {
352-
keys.clickUrl = encodeURIComponent(nativeAd.link.url);
352+
keys.clickUrl = nativeAd.link.url;
353353
}
354354
const trackers = nativeAd.imptrackers || [];
355355
trackers.unshift(replaceAuctionPrice(bid.burl, bid.price));

test/spec/modules/readpeakBidAdapter_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ describe('ReadPeakAdapter', function() {
376376
height: 500
377377
});
378378
expect(bidResponse.native.clickUrl).to.equal(
379-
'http%3A%2F%2Furl.to%2Ftarget'
379+
'http://url.to/target'
380380
);
381381
expect(bidResponse.native.impressionTrackers).to.contain(
382382
'http://url.to/pixeltracker'

0 commit comments

Comments
 (0)