From 944503b0a6bd73dc2d096c2961b740942457f891 Mon Sep 17 00:00:00 2001
From: Aditya Anand <adianand@paypal.com>
Date: Sat, 4 Aug 2018 13:53:30 +0530
Subject: [PATCH] hack: trailing slash for profile

---
 app/dashboard/views.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/dashboard/views.py b/app/dashboard/views.py
index d6197bd6528..7feda6205b4 100644
--- a/app/dashboard/views.py
+++ b/app/dashboard/views.py
@@ -1005,6 +1005,8 @@ def profile(request, handle):
             handle = request.user.username
             profile = request.user.profile
         else:
+            if handle.endswith('/'):
+                handle = handle[:-1]
             profile = profile_helper(handle)
     except Http404:
         show_hidden_profile = True