From 003b7f06adf3bb625e7e99d61fae2b2a8f1653ee Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 18 May 2018 09:52:16 +0530 Subject: [PATCH] FIX: rescue specific error --- app/controllers/tags_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index d5c086d2ae2..09ad79c44fc 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -283,7 +283,7 @@ class TagsController < ::ApplicationController else # :next public_send(method, opts.merge(next_page_params(opts))) end - rescue + rescue ActionController::UrlGenerationError raise Discourse::NotFound end url.sub('.json?', '?')