diff --git a/openprescribing/frontend/views/views.py b/openprescribing/frontend/views/views.py index 5f7cb5af56..adf6aad052 100644 --- a/openprescribing/frontend/views/views.py +++ b/openprescribing/frontend/views/views.py @@ -544,6 +544,10 @@ def measure_for_one_entity(request, measure, entity_code, entity_type): ), "rollUpBy": "measure_id", "tagsFocusUrlTemplate": _url_template("measures_for_one_" + entity_type), + "allMeasuresForOrgUrl": reverse( + "measures_for_one_" + entity_type, + kwargs={entity_type + "_code": entity_code}, + ), } _add_measure_for_children_in_entity_url(measure_options, entity_type) @@ -589,6 +593,7 @@ def measure_for_all_england(request, measure): ), "rollUpBy": "measure_id", "tagsFocusUrlTemplate": reverse("all_england"), + "allMeasuresForOrgUrl": reverse("all_england"), } _add_measure_details(measure_options, measure) diff --git a/openprescribing/media/js/src/measure_utils.js b/openprescribing/media/js/src/measure_utils.js index 993761229a..737a54dfbb 100644 --- a/openprescribing/media/js/src/measure_utils.js +++ b/openprescribing/media/js/src/measure_utils.js @@ -446,6 +446,7 @@ var utils = { measureForAllPracticesUrl: measureForAllPracticesUrl, measureForAllCCGsUrl: measureForAllCCGsUrl, measureForSiblingsUrl: measureForSiblingsUrl, + allMeasuresForOrgUrl: options.allMeasuresForOrgUrl || "", improvementRadarUrl: improvementRadarUrl, chartExplanation: chartExplanation, tags: d.tags, diff --git a/openprescribing/templates/_measures_panel.html b/openprescribing/templates/_measures_panel.html index 96cea025be..c3e7d57105 100644 --- a/openprescribing/templates/_measures_panel.html +++ b/openprescribing/templates/_measures_panel.html @@ -110,7 +110,7 @@