Fix bug: generate /en/1/index.html

id_redirect.rules didn't scope the rule by locale, and because
of that /ar/X/index.html was generated but not /en/X/index.html
This commit is contained in:
0x1eef 2023-03-11 09:24:30 -03:00
parent 4e383ec107
commit ce2a5d68bf

View file

@ -6,7 +6,7 @@
1.upto(114) do |id| 1.upto(114) do |id|
locales.each do |locale| locales.each do |locale|
compile "/html/pages/surah/id_redirect.html.erb", rep: "redirect_id/#{id}" do compile "/html/pages/surah/id_redirect.html.erb", rep: "redirect_id/#{locale}/#{id}" do
filter(:erb) filter(:erb)
write("/#{locale}/#{id}/index.html") write("/#{locale}/#{id}/index.html")
end end