This commit is contained in:
BoHung Chiu 2021-11-17 18:01:33 +08:00
parent a89ec48c1b
commit 29732396dc
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class AnnouncementsController < ApplicationController
page = Page.where(:page_id=> subpart.read_more_page_id,:enabled_for=>locale).first rescue nil
page = Page.where(:module=>"announcement",:enabled_for=>locale).first rescue nil if page.nil?
end
page_url = "/#{locale}#{page.get_url}"
page_url = "/#{locale}#{(page.get_url rescue page.url)}"
end
all_cats = cats.dup
all_cats.delete "all"