This commit is contained in:
BoHung Chiu 2021-04-09 18:10:15 +08:00
parent 62b0cf84fa
commit eeeff9ad6b
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class AnnouncementsController < ApplicationController
if (params['category'] != page.categories rescue true)
@annc_page_title = Category.find(Array(params['category']).first).title rescue nil
end
if (params["tags"] != page.tags rescue true)
if (params["tags"] != page.tags && params["tags"].count == 1 rescue true)
@annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil
end
{