diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index c815e59a90..d57ffa44ee 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -331,11 +331,11 @@ angular } if(!_.isEqual(toParamsWithoutSearchKeys, fromParamsWithoutSearchKeys)) { - document.body.scrollTop = document.documentElement.scrollTop = 0; + document.querySelector('.at-Layout-main').scrollTop = 0; } } else { - document.body.scrollTop = document.documentElement.scrollTop = 0; + document.querySelector('.at-Layout-main').scrollTop = 0; } if (trans.from().name === 'license' && trans.params('to').hasOwnProperty('licenseMissing')) {