Skip to content

Commit

Permalink
Redirect 404s to start page
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Sep 2, 2019
1 parent 4d40a46 commit 5c59853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5c59853

Please sign in to comment.