Explorar o código

GC-1183: index all pages except for redirect

* BugFix
Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
6881aed64f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: