diff --git a/app/controllers/cards_controller.rb b/app/controllers/cards_controller.rb index 9a0d5d19c..9750d6e9c 100644 --- a/app/controllers/cards_controller.rb +++ b/app/controllers/cards_controller.rb @@ -38,7 +38,7 @@ class CardsController < ApplicationController def destroy @card.destroy! - redirect_to cards_path(collection_ids: [ @card.collection ]), notice: ("Card deleted" unless @card.creating?) + redirect_to @card.collection, notice: ("Card deleted" unless @card.creating?) end private diff --git a/app/views/collections/edit.html.erb b/app/views/collections/edit.html.erb index 8fa1a5f0e..536f7ef68 100644 --- a/app/views/collections/edit.html.erb +++ b/app/views/collections/edit.html.erb @@ -33,7 +33,7 @@ Save changes - <%= link_to "Cancel and go back", cards_path(collection_ids: [ @collection ]), data: { form_target: "cancel", turbo_frame: "_top" }, hidden: true %> + <%= link_to "Cancel and go back", @collection, data: { form_target: "cancel", turbo_frame: "_top" }, hidden: true %> <% end %> diff --git a/app/views/webhooks/index.html.erb b/app/views/webhooks/index.html.erb index f4d93588e..8a5855519 100644 --- a/app/views/webhooks/index.html.erb +++ b/app/views/webhooks/index.html.erb @@ -3,7 +3,7 @@ <% content_for :header do %> <%= render "filters/menu" %>