diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index e1f31898..efbb024f 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -1,5 +1,5 @@ class MapsController < ApplicationController def index - redirect_to maps_maplibre_path + redirect_to maps_v2_path end end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 530dc2a7..16f117bb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -147,6 +147,6 @@ module ApplicationHelper return map_path unless user_signed_in? preferred_version = current_user.safe_settings.maps&.dig('preferred_version') - preferred_version == 'v2' ? maps_maplibre_path : map_path + preferred_version == 'v2' ? maps_v2_path : map_path end end diff --git a/app/views/shared/map/_date_navigation_v2.html.erb b/app/views/shared/map/_date_navigation_v2.html.erb index 799fdcce..b3262c50 100644 --- a/app/views/shared/map/_date_navigation_v2.html.erb +++ b/app/views/shared/map/_date_navigation_v2.html.erb @@ -17,12 +17,12 @@