Skip to content

Node.js based forum software built for the modern web

fixing up robots.txt

Julian Lamf28c690f2f1f
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 7caec05855..4e323ce190 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -248,7 +248,7 @@ Controllers.robots = function (req, res) {
res.send(meta.config["robots.txt"]);
} else {
res.send("User-agent: *\n" +
- "Disallow: /admin/\n" +
+ "Disallow: " + nconf.get('relative_path') + "/admin/\n" +
"Sitemap: " + nconf.get('url') + "/sitemap.xml");
}
};