From 49da854b66171dab10e6e77bf9d90bcd8584367a Mon Sep 17 00:00:00 2001 From: Zachary Carter <zack.carter@gmail.com> Date: Thu, 16 Aug 2012 14:25:16 -0700 Subject: [PATCH] add a permanent redirect from /signup to /signin - issue #2277 --- lib/static/views.js | 5 +++++ tests/page-requests-test.js | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/static/views.js b/lib/static/views.js index c1bc0c45a..cd498b0f4 100644 --- a/lib/static/views.js +++ b/lib/static/views.js @@ -161,6 +161,11 @@ exports.setup = function(app) { }); }); + app.get("/signup", function(req, res) { + res.header('Location', '/signin'); + res.send(301); + }); + app.get("/signin", function(req, res) { renderCachableView(req, res, 'signin.ejs', {title: _('Sign In'), fullpage: false}); }); diff --git a/tests/page-requests-test.js b/tests/page-requests-test.js index 9978f4283..f076f3ace 100755 --- a/tests/page-requests-test.js +++ b/tests/page-requests-test.js @@ -56,6 +56,7 @@ function respondsWith(status) { suite.addBatch({ 'GET /': respondsWith(200), 'GET /forgot': respondsWith(200), + 'GET /signup': respondsWith(301), 'GET /signin': respondsWith(200), 'GET /about': respondsWith(200), 'GET /tos': respondsWith(200), -- GitLab