0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Remove useless regex for redirecting /ghost -> /ghost/

This commit is contained in:
Michael Bradshaw 2014-02-19 15:56:06 -07:00
parent f273e17e08
commit cb6d0d8dfe

View file

@ -50,7 +50,7 @@ module.exports = function (server) {
/*jslint unparam:true*/
res.redirect(subdir + '/ghost/');
});
server.get(/\/(ghost$\/?)/, function (req, res) {
server.get(/\/ghost$/, function (req, res) {
/*jslint unparam:true*/
res.redirect(subdir + '/ghost/');
});