fix tests (#7912)

fix tests (#7912)

diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6
index 3db96d0..0d1d30c 100644
--- a/app/assets/javascripts/discourse/widgets/header.js.es6
+++ b/app/assets/javascripts/discourse/widgets/header.js.es6
@@ -404,7 +404,7 @@ export default createWidget("header", {
 
       const currentPath = this.register
         .lookup("service:router")
-        .get("router._router.currentPath");
+        .get("_router.currentPath");
 
       if (currentPath === "full-page-search") {
         scrollTop();
@@ -480,7 +480,7 @@ export default createWidget("header", {
 
     const currentPath = this.register
       .lookup("service:router")
-      .get("router._router.currentPath");
+      .get("_router.currentPath");
     const blacklist = [/^discovery\.categories/];
     const whitelist = [/^topic\./];
     const check = function(regex) {

GitHub sha: 533f5172