Fix bug that cannot filter by certain tag from show page tag link.

This commit is contained in:
chiu 2020-12-16 17:33:52 +08:00
parent 85e5cc215f
commit 4957e4a947
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ module AnnouncementsHelper
categories = @categories
else
tags = page.tags
tags = params[:tags] if params[:tags].present?
categories = params['category']=='all' ? (page.categories || []) : ([Category.find(params['category'])] rescue (page.categories || []))
end
if !params["source"].present?