app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-2.0.0.rc1 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-2.0.0.rc2
- old
+ new
@@ -93,10 +93,10 @@
new_page = CloneTranslatedPageFromLocale.call(locale: clone_params, page: @page)
model_name = @page.class.model_name.human.downcase
if new_page.save
redirect_to(
- edit_exhibit_translations_path(current_exhibit, new_page, language: clone_params, tab: 'pages'),
+ edit_exhibit_translations_path(current_exhibit, language: clone_params, tab: 'pages'),
notice: t(:'helpers.submit.page.created', model: model_name)
)
else
redirect_to :back, error: t(:'helpers.submit.page.clone_error', model: model_name)
end