diff --git a/changes/63.changes b/changes/63.changes new file mode 100644 index 0000000..6f7ee9d --- /dev/null +++ b/changes/63.changes @@ -0,0 +1,2 @@ +Update URL for Open Maps viewer on the "View on Map" button. + diff --git a/oc_search/settings-sample.py b/oc_search/settings-sample.py index 749e6db..9a7e766 100644 --- a/oc_search/settings-sample.py +++ b/oc_search/settings-sample.py @@ -293,8 +293,8 @@ OPEN_DATA_CORE = "search_opendata" OPEN_DATA_BASE_URL_EN = "https://open.canada.ca/data/en/dataset/" OPEN_DATA_BASE_URL_FR = "https://ouvert.canada.ca/data/fr/dataset/" -OPEN_DATA_EN_FGP_BASE = "https://search.open.canada.ca/openmap/" -OPEN_DATA_FR_FGP_BASE = "https://rechercher.ouvert.canada.ca/carteouverte/" +OPEN_DATA_EN_FGP_BASE = "https://open.canada.ca/openmap/en.html#" +OPEN_DATA_FR_FGP_BASE = "https://ouvert.canada.ca/carteouverte/fr.html#" OPEN_DATA_HOST_EN = "https://open.canada.ca" OPEN_DATA_HOST_FR = "https://ouvert.canada.ca" diff --git a/oc_search/urls.py b/oc_search/urls.py index 285fd8a..824c56f 100644 --- a/oc_search/urls.py +++ b/oc_search/urls.py @@ -90,10 +90,10 @@ ] if 'ramp' in settings.INSTALLED_APPS: urlpatterns += [ - path(settings.SEARCH_HOST_PATH + 'openmap/', RampView.as_view(), name='RampForm'), - path(settings.SEARCH_HOST_PATH + 'openmap/', RampView.as_view(), name='RampForm'), - path(settings.SEARCH_HOST_PATH + 'carteouverte/', RampView.as_view(), name='RampForm'), - path(settings.SEARCH_HOST_PATH + 'carteouverte/', RampView.as_view(), name='RampForm'), + path(settings.OPEN_DATA_HOST_EN + 'openmap/en.html#', RampView.as_view(), name='RampForm'), + path(settings.OPEN_DATA_HOST_EN + 'openmap/en.html#', RampView.as_view(), name='RampForm'), + path(settings.OPEN_DATA_HOST_FR + 'carteouverte/fr.html#', RampView.as_view(), name='RampForm'), + path(settings.OPEN_DATA_HOST_FR + 'carteouverte/fr.html#', RampView.as_view(), name='RampForm'), ] if settings.HTTP_FORM_PROTOCOL == "Get":