From 5c5985303b8249359e5fb69bc250b9a1371caf96 Mon Sep 17 00:00:00 2001 From: martent Date: Mon, 2 Sep 2019 16:17:21 +0200 Subject: [PATCH] Redirect 404s to start page --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index ad93bf7..b729e37 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -58,5 +58,5 @@ get 'reports/status/:job_id/:file_id/:report_type' => 'reports#status', as: 'reports_status' get 'reports/download/:id/:report_type' => 'reports#download', as: 'reports_download' - match '*path', via: :all, to: 'errors#not_found' + get '*path' => redirect('/') unless Rails.env.development? end