From f0937dc5d3d60ffc63a153c74b3573edf6e9e27d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 28 Sep 2016 10:36:56 -0400 Subject: [PATCH] FIX: Route to `.rss` or `.json` as a server side URL --- app/assets/javascripts/discourse/lib/url.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6 index a37867135b..8101a2a7d3 100644 --- a/app/assets/javascripts/discourse/lib/url.js.es6 +++ b/app/assets/javascripts/discourse/lib/url.js.es6 @@ -8,7 +8,8 @@ const TOPIC_REGEXP = /\/t\/([^\/]+)\/(\d+)\/?(\d+)?/; // We can add links here that have server side responses but not client side. const SERVER_SIDE_ONLY = [ /^\/posts\/\d+\/raw/, - /^\/posts\.rss/ + /\.rss$/, + /\.json/, ]; let _jumpScheduled = false;