From 9e6fc6be3f23577db3f390b60d3c9ac3e24042b9 Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 21 Jan 2021 08:11:57 +0100 Subject: [PATCH] allow trailing slash on /r/ --- app/reddit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/reddit/__init__.py b/app/reddit/__init__.py index 89d8197..3bea039 100644 --- a/app/reddit/__init__.py +++ b/app/reddit/__init__.py @@ -12,7 +12,7 @@ frontend = Blueprint('reddit', __name__, static_url_path='/static/rd') @frontend.route('/feed/subreddits') -@frontend.route('/r/') +@frontend.route('/r//') def reddit(subreddit=None): token = getattr(current_user, 'token', 'guest') count = int(request.args.get('count', 0)) -- 2.39.3