diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php
index f89866ed21..2ef3acfd7d 100644
--- a/resources/views/reports/custom.blade.php
+++ b/resources/views/reports/custom.blade.php
@@ -627,7 +627,11 @@
>
@foreach($report_templates as $savedTemplate)
-
@endforeach
@@ -774,7 +778,7 @@
$('#saved_report_select')
.on('select2:select', function (event) {
- window.location.href = '/reports/templates/' + event.params.data.id;
+ window.location.href = event.params.data.element.dataset.route;
});
$('#dataConfirmModal').on('show.bs.modal', function (event) {