diff --git a/core/server/middleware/index.js b/core/server/middleware/index.js index 196df13981..3cb1245364 100644 --- a/core/server/middleware/index.js +++ b/core/server/middleware/index.js @@ -299,13 +299,11 @@ setupMiddleware = function (blogAppInstance, adminApp) { // site map sitemapHandler(blogApp); - // Add in all trailing slashes, properly include the subdir path - // in the redirect. + // Add in all trailing slashes blogApp.use(slashes(true, { headers: { 'Cache-Control': 'public, max-age=' + utils.ONE_YEAR_S - }, - base: config.paths.subdir + } })); blogApp.use(uncapitalise); diff --git a/package.json b/package.json index d806f426e8..334fc18012 100644 --- a/package.json +++ b/package.json @@ -32,20 +32,20 @@ "engineStrict": true, "dependencies": { "bcryptjs": "2.0.2", - "bluebird": "2.3.10", - "body-parser": "1.8.2", + "bluebird": "2.4.2", + "body-parser": "1.10.0", "bookshelf": "0.7.9", - "busboy": "0.2.8", + "busboy": "0.2.9", "cheerio": "0.18.0", "colors": "0.6.2", "compression": "1.2.2", - "connect-slashes": "1.2.0", + "connect-slashes": "1.3.0", "downsize": "0.0.8", "express": "4.10.6", "express-hbs": "0.7.11", "extract-zip": "1.0.3", - "fs-extra": "0.12.0", - "glob": "4.3.1", + "fs-extra": "0.13.0", + "glob": "4.3.2", "html-to-text": "1.0.0", "knex": "0.7.3", "lodash": "2.4.1", @@ -54,9 +54,9 @@ "node-uuid": "1.4.2", "nodemailer": "0.7.1", "oauth2orize": "1.0.1", - "passport": "0.2.0", + "passport": "0.2.1", "passport-http-bearer": "1.0.1", - "passport-oauth2-client-password": "0.1.1", + "passport-oauth2-client-password": "0.1.2", "request": "2.51.0", "rss": "1.0.0", "semver": "4.1.0", @@ -88,7 +88,7 @@ "grunt-ember-templates": "~0.5.0-alpha", "grunt-es6-module-transpiler": "~0.6.0", "grunt-express-server": "~0.4.19", - "grunt-jscs": "~1.0.0", + "grunt-jscs": "~1.1.0", "grunt-mocha-cli": "~1.11.0", "grunt-sass": "~0.16.1", "grunt-shell": "~1.1.1",