Skip to content

A platform for community discussion. Free, open, simple.

FIX: rescue specific error

Arpit Jalan003b7f06adf3
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?', '?')