From f19fcfc337c362188c7013472754fdb9f75ce1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 8 Jun 2022 16:31:51 +0200 Subject: [PATCH] 404 Not found while restoring documents from the trash bin #1366 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 82f11548..e5cdafa8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -96,11 +96,11 @@ if Redmine::Plugin.installed? :redmine_dmsf get '/dmsf/files/:id/revision/obsolete', controller: 'dmsf_files', action: 'obsolete_revision', as: 'obsolete_revision' get '/dmsf/files/:id/download', to: 'dmsf_files#view', download: '', as: 'download_dmsf_file' # Otherwise will not route nil into the download param get '/dmsf/files/:id/view', to: 'dmsf_files#view', as: 'view_dmsf_file' - get '/dmsf/files/:id/:filename', to: 'dmsf_files#view', :id => /\d+/, :filename => /.*/, as: 'static_dmsf_file' get '/dmsf/files/:id', controller: 'dmsf_files', action: 'show', as: 'dmsf_file' delete '/dmsf/files/:id', controller: 'dmsf_files', action: 'delete' get '/dmsf/files/:id/restore', controller: 'dmsf_files', action: 'restore', as: 'restore_dmsf_file' get '/dmsf/files/:id/thumbnail', to: 'dmsf_files#thumbnail', as: 'dmsf_thumbnail' + get '/dmsf/files/:id/:filename', to: 'dmsf_files#view', :id => /\d+/, :filename => /.*/, as: 'static_dmsf_file' # # url controller