mirror of
https://github.com/discourse/discourse.git
synced 2025-05-11 06:29:26 +08:00
FIX: rescue specific error
This commit is contained in:
parent
416d19af27
commit
003b7f06ad
@ -283,7 +283,7 @@ class TagsController < ::ApplicationController
|
|||||||
else # :next
|
else # :next
|
||||||
public_send(method, opts.merge(next_page_params(opts)))
|
public_send(method, opts.merge(next_page_params(opts)))
|
||||||
end
|
end
|
||||||
rescue
|
rescue ActionController::UrlGenerationError
|
||||||
raise Discourse::NotFound
|
raise Discourse::NotFound
|
||||||
end
|
end
|
||||||
url.sub('.json?', '?')
|
url.sub('.json?', '?')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user