Skip to content

Commit

Permalink
fixup! Fix: Map: "All" works correctly with date in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmstuart committed Apr 15, 2024
1 parent 40d357d commit 113a560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/listings_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/views/sitemaps/index.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 113a560

Please sign in to comment.