Просмотр исходного кода

GC-1183: index all pages except for redirect

* BugFix
Yuki Takei 7 лет назад
Родитель
Сommit
6881aed64f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/util/search.js

+ 1 - 1
src/server/util/search.js

@@ -92,7 +92,7 @@ SearchClient.prototype.registerUpdateEvent = function() {
 };
 
 SearchClient.prototype.shouldIndexed = function(page) {
-  return (page.redirectTo !== null);
+  return (page.redirectTo == null);
 };
 
 // BONSAI_URL is following format: