fix redirect

This commit is contained in:
Pete Matsyburka committed 2025-06-09 14:20:17 +03:00
1 parent ef4c2b7213
commit 591caecb92
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ class SubmissionsController < ApplicationController
I18n.t('submission_has_been_archived')
end
redirect_back(fallback_location: template_path(@submission.template), notice:)
redirect_back(fallback_location: @submission.template_id ? template_path(@submission.template) : root_path, notice:)
end
private