Skip to content

A free open source IT asset/license management system

Simplify url

Marcus Moorefda77179a345
diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php
index c5e936393e..a3e397f8fb 100644
--- a/resources/views/reports/custom.blade.php
+++ b/resources/views/reports/custom.blade.php
@@ -423,7 +423,7 @@
<script>
$('#saved_report_select')
.on('select2:select', function (event) {
- window.location.href = '/reports/saved-templates/' + event.params.data.id;
+ window.location.href = '/reports/templates/' + event.params.data.id;
})
.on('select2:clearing', function (event) {
window.location.href = '{{ route('reports/custom') }}';
diff --git a/routes/web.php b/routes/web.php
index 32263816aa..8386a0132c 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -357,11 +357,12 @@ Route::group(['middleware' => ['auth']], function () {
)->name('reports/export/accessories');
Route::get('reports/custom', [ReportsController::class, 'getCustomReport'])->name('reports/custom');
Route::post('reports/custom', [ReportsController::class, 'postCustom']);
- Route::post('reports/saved-templates', [ReportTemplatesController::class, 'store'])->name('report-templates.store');
- Route::get('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'show'])->name('report-templates.show');
- Route::get('reports/saved-templates/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('report-templates.edit');
- Route::post('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'update'])->name('report-templates.update');
- Route::delete('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('report-templates.destroy');
+
+ Route::post('reports/templates', [ReportTemplatesController::class, 'store'])->name('report-templates.store');
+ Route::get('reports/templates/{reportId}', [ReportTemplatesController::class, 'show'])->name('report-templates.show');
+ Route::get('reports/templates/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('report-templates.edit');
+ Route::post('reports/templates/{reportId}', [ReportTemplatesController::class, 'update'])->name('report-templates.update');
+ Route::delete('reports/templates/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('report-templates.destroy');
Route::get(
'reports/activity',