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:
parent
4e383ec107
commit
ce2a5d68bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue