diff --git a/lib/redmine_dmsf/patches/queries_controller_patch.rb b/lib/redmine_dmsf/patches/queries_controller_patch.rb index 788bdab7..f6fbb9d0 100644 --- a/lib/redmine_dmsf/patches/queries_controller_patch.rb +++ b/lib/redmine_dmsf/patches/queries_controller_patch.rb @@ -29,7 +29,11 @@ module RedmineDmsf private def redirect_to_dmsf_query(options) + if @project redirect_to dmsf_folder_path(@project, options) + else + redirect_to home_path(options) + end end end