Add a check to register route handler

Change-Id: I59d465eb155b7e6fbf5cf739e2cd03c266f8f6e3
This commit is contained in:
Wyatt Allen
2017-06-22 14:54:06 -07:00
committed by Paladox
parent f93ac680c1
commit bc56040eac

View File

@@ -240,6 +240,7 @@
page(/^\/register(\/.*)?/, function(ctx) {
app.params = {justRegistered: true};
var path = ctx.params[0] || '/';
if (path[0] !== '/') { return; }
page.show(path);
});