diff --git a/docs/index.html b/docs/index.html
index 5140aaa0d..c55ece543 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -22,6 +22,7 @@
#carbonads {
box-shadow: none !important;
+ width: auto !important;
}
diff --git a/index.html b/index.html
index 8247ce5f5..bfe0778b0 100644
--- a/index.html
+++ b/index.html
@@ -18,6 +18,7 @@
#carbonads {
box-shadow: none !important;
+ width: auto !important;
}
diff --git a/src/plugins/search/search.js b/src/plugins/search/search.js
index 6a212c016..7cda33071 100644
--- a/src/plugins/search/search.js
+++ b/src/plugins/search/search.js
@@ -203,7 +203,7 @@ export function init(config, vm) {
let namespaceSuffix = '';
// only in auto mode
- if (isAuto && config.pathNamespaces) {
+ if (paths.length && isAuto && config.pathNamespaces) {
const path = paths[0];
if (Array.isArray(config.pathNamespaces)) {