Skip to content

Commit

Permalink
include query string in page parameter (#10644)
Browse files Browse the repository at this point in the history
  • Loading branch information
snigelweb authored Oct 27, 2023
1 parent 54e5cb1 commit 838b947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/snigelBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ registerBidder(spec);

function getPage(bidderRequest) {
return (
getConfig(`${BIDDER_CODE}.page`) || deepAccess(bidderRequest, 'refererInfo.canonicalUrl') || window.location.href
getConfig(`${BIDDER_CODE}.page`) || deepAccess(bidderRequest, 'refererInfo.page') || window.location.href
);
}

Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/snigelBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const BASE_BIDDER_REQUEST = {
auctionId: 'test',
bidderRequestId: 'test',
refererInfo: {
page: 'https://localhost',
canonicalUrl: 'https://localhost',
},
};
Expand Down

0 comments on commit 838b947

Please sign in to comment.