diff --git a/js/piwik.js b/js/piwik.js
index 94816854a8b2c2aebe91028c572a7f6cad456ef8..344e5436e9c3b9c3e443be65142c9746398074c0 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -4905,7 +4905,7 @@ if (typeof Piwik !== 'object') {
                 var aliasPath   = getPathName(configHostAlias);
                 var currentPath = getPathName(currentUrl);
 
-                if (!aliasPath || aliasPath === '/' || !currentPath || currentPath === '/') {
+                if (!aliasPath || aliasPath === '/' || !currentPath || currentPath === '/') {
                     // no path set that would be useful for cookiePath
                     return;
                 }