diff --git a/app/helpers/listings_helper.rb b/app/helpers/listings_helper.rb index 9403c3cc..c190184c 100644 --- a/app/helpers/listings_helper.rb +++ b/app/helpers/listings_helper.rb @@ -57,7 +57,7 @@ def swingclass_listing(swingclass, day) end def class_map_url(day, venue) - map_classes_path(day:, venue_id: venue.id) unless venue.coordinates.nil? + map_classes_day_path(day:, venue_id: venue.id) unless venue.coordinates.nil? end def swingclass_link(event) diff --git a/app/views/sitemaps/index.xml.builder b/app/views/sitemaps/index.xml.builder index b425165b..ff0f6f06 100644 --- a/app/views/sitemaps/index.xml.builder +++ b/app/views/sitemaps/index.xml.builder @@ -23,7 +23,7 @@ xml.tag!( render("url", builder: xml, link_url: map_classes_url, change_frequency: "weekly", priority: 0.9) DAYNAMES.each do |day| - render("url", builder: xml, link_url: map_classes_url(day:), change_frequency: "weekly", priority: 0.7) + render("url", builder: xml, link_url: map_classes_day_url(day:), change_frequency: "weekly", priority: 0.7) end render("url", builder: xml, link_url: privacy_url, change_frequency: "yearly", priority: 0.4)