add / to user-redirect

Some proxies may not correctly route /user/name, only /user/name/...
This commit is contained in:
Min RK
2017-08-07 15:23:58 +02:00
parent 6ba3090cd5
commit 546268809f
2 changed files with 3 additions and 1 deletions

View File

@@ -631,6 +631,8 @@ class UserSpawnHandler(BaseHandler):
@gen.coroutine
def get(self, name, user_path):
if not user_path:
user_path = '/'
current_user = self.get_current_user()
if current_user and current_user.name == name: