diff --git a/modules/adagioBidAdapter.js b/modules/adagioBidAdapter.js index 5c07cbe2844..ac01b317ab3 100644 --- a/modules/adagioBidAdapter.js +++ b/modules/adagioBidAdapter.js @@ -271,9 +271,8 @@ function getDevice() { function getSite(bidderRequest) { const { refererInfo } = bidderRequest; return { - // TODO: do these fallbacks make sense? - domain: refererInfo.domain || parseDomain(refererInfo.topmostLocation) || '', - page: refererInfo.page || refererInfo.topmostLocation || '', + domain: parseDomain(refererInfo.topmostLocation) || '', + page: refererInfo.topmostLocation || '', referrer: refererInfo.ref || getWindowSelf().document.referrer || '', top: refererInfo.reachedTop }; diff --git a/test/spec/modules/adagioBidAdapter_spec.js b/test/spec/modules/adagioBidAdapter_spec.js index 15f79b407d1..36bb5fb1e4d 100644 --- a/test/spec/modules/adagioBidAdapter_spec.js +++ b/test/spec/modules/adagioBidAdapter_spec.js @@ -1391,6 +1391,7 @@ describe('Adagio bid adapter', () => { refererInfo: { numIframes: 0, reachedTop: true, + topmostLocation: 'https://test.io/article/a.html', page: 'https://test.io/article/a.html', domain: 'test.io', ref: 'https://google.com' @@ -1417,6 +1418,7 @@ describe('Adagio bid adapter', () => { numIframes: 0, reachedTop: true, page: 'http://level.io/', + topmostLocation: 'http://level.io/', stack: [ 'http://level.io/', 'http://example.com/iframe1.html',