Skip to content

A platform for community discussion. Free, open, simple.

fix tests (#7912)

Joffrey JAFFEUX533f5172d7fb
diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6
index 3db96d08033..0d1d30cc9aa 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) {