Skip to content

Commit 16ac10e

Browse files
authored
fix(QuickLinks): Use slug for name in Statins (#5802)
**Story card:** [SIMPLEETH-32](https://rtsl.atlassian.net/browse/SIMPLEETH-32) ## Because The Statins report tacks on the `name` of the facility to the report URL. This is wrong since the report expects the facility `slug`. ## This addresses Changing `name` to `slug` for generating the Statins quicklinks ## Test instructions Check the full generated URL for a facility
1 parent 9db6674 commit 16ac10e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/reports/regions/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</a>
3939
</div>
4040
<div>
41-
<a href="<%= ENV.fetch('METABASE_STATIN_REPORT_URL', '') %><%= @region.name %>" target="_blank">
41+
<a href="<%= ENV.fetch('METABASE_STATIN_REPORT_URL', '') %><%= @region.slug %>" target="_blank">
4242
Metabase: Statin Report
4343
</a>
4444
</div>
@@ -461,4 +461,4 @@
461461
createScrollTrackingListener(element.id)
462462
});
463463
});
464-
</script>
464+
</script>

0 commit comments

Comments
 (0)