From 27812798924b0bf59d36c7d5ff30b8cf92f809a7 Mon Sep 17 00:00:00 2001 From: sgotre Date: Mon, 10 Oct 2022 15:27:48 +0200 Subject: [PATCH] Allow deleting of Tags which contain forward slashes (Fixes #1093) (#1196) * fix #1093, delete tags which contain forward slashes * remove double ; Co-authored-by: Stefan Gotre --- routes/web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index e221c3d9..497dc582 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,7 +16,9 @@ Route::get('/monitoring', 'MonitoringController@index')->name('horizon.monitoring.index'); Route::post('/monitoring', 'MonitoringController@store')->name('horizon.monitoring.store'); Route::get('/monitoring/{tag}', 'MonitoringController@paginate')->name('horizon.monitoring-tag.paginate'); - Route::delete('/monitoring/{tag}', 'MonitoringController@destroy')->name('horizon.monitoring-tag.destroy'); + Route::delete('/monitoring/{tag}', 'MonitoringController@destroy') + ->name('horizon.monitoring-tag.destroy') + ->where('tag', '.*'); // Job Metric Routes... Route::get('/metrics/jobs', 'JobMetricsController@index')->name('horizon.jobs-metrics.index');