Browse Source

GC-1183: index all pages except for redirect

* BugFix
Yuki Takei 7 years ago
parent
commit
6881aed64f
1 changed files with 1 additions and 1 deletions
  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) {
 SearchClient.prototype.shouldIndexed = function(page) {
-  return (page.redirectTo !== null);
+  return (page.redirectTo == null);
 };
 };
 
 
 // BONSAI_URL is following format:
 // BONSAI_URL is following format: