fix redirect

This commit is contained in:
Pete Matsyburka
2025-06-09 11:40:23 +03:00
parent ef4c2b7213
commit 591caecb92
+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