From a3462987f9ea4d1aec9d77e11f2034f2545af173 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Tue, 17 Nov 2015 16:13:10 -0800 Subject: [PATCH] Message: Remove trailing slash from subreddit path in tagline. --- r2/r2/templates/message.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/templates/message.html b/r2/r2/templates/message.html index 4aba5c413..ac7061dbc 100644 --- a/r2/r2/templates/message.html +++ b/r2/r2/templates/message.html @@ -82,7 +82,8 @@ substitutions = {} if thing.sr_id: - substitutions['subreddit'] = format_html(u'%(path)s', path=thing.subreddit.path) + path = thing.subreddit.path.rstrip('/') + substitutions['subreddit'] = format_html(u'%(path)s', path=path) substitutions['author'] = format_html(u'%s', WrappedUser(thing.author, thing.attribs, thing))