archived nav

This commit is contained in:
Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent a4ca0abba1
commit 8259ebdb6c
9 files changed
+42 -20

No files matched your search

+5 -1
View File
@@ -83,7 +83,11 @@ class TemplatesController < ApplicationController
I18n.t('template_has_been_archived')
end
redirect_back(fallback_location: root_path, notice:)
if @template.destroyed? && turbo_native_app?
redirect_to templates_archived_index_path, notice:
else
redirect_back(fallback_location: root_path, notice:)
end
end
private