Skip to content
Snippets Groups Projects
Unverified Commit 67ea9dcb authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

redirect to about after block duplication (#2461)

parent 1468096f
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,9 @@ class Admin::Communication::BlocksController < Admin::Communication::Application
end
def duplicate
redirect_to [:edit, :admin, @block.duplicate],
# On réattribue à @block pour bénéficier du calcul dans about_path
@block = @block.duplicate
redirect_to about_path + "#block-#{@block.id}",
notice: t('admin.successfully_duplicated_html', model: @block.to_s)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment