From 1624382e37b25fdd8ffbcd0d9cbefc978cdc6623 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Tue, 8 Apr 2025 15:37:26 +0800 Subject: [PATCH] fix: correct URL structure for weather arts - Update the URL generation logic to reflect the new route format. - Ensure that the URLs for different locales now point to the correct weather arts resource. This change fixes an issue where URLs could lead to incorrect endpoints, improving the functionality of image attachment processing. --- app/workers/submit_to_indexnow_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/submit_to_indexnow_worker.rb b/app/workers/submit_to_indexnow_worker.rb index 3a567a6..3b4abbc 100644 --- a/app/workers/submit_to_indexnow_worker.rb +++ b/app/workers/submit_to_indexnow_worker.rb @@ -88,7 +88,7 @@ class SubmitToIndexnowWorker if art.image.attached? urls << "#{@host}/cities/#{art.city.slug}/weather_arts/#{art.slug}" available_locales.each do |locale| - urls << "#{@host}/#{locale}/cities/#{art.city.slug}/weather_arts/#{art.slug}" + urls << "#{@host}/#{locale}/cities/#{art.city.slug}/weather/#{art.slug}" end end end