From 22da775a8546a0496b4f501f7cb6e321b0168f40 Mon Sep 17 00:00:00 2001
From: erin <sylphofelectricity@gmail.com>
Date: Thu, 26 Oct 2017 09:44:24 -0500
Subject: [PATCH] Fix copying emojos: redirect to the page you were on (#5509)

---
 app/controllers/admin/custom_emojis_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/admin/custom_emojis_controller.rb b/app/controllers/admin/custom_emojis_controller.rb
index 5cce5bce46..5d9144be7b 100644
--- a/app/controllers/admin/custom_emojis_controller.rb
+++ b/app/controllers/admin/custom_emojis_controller.rb
@@ -36,7 +36,7 @@ module Admin
         flash[:alert] = I18n.t('admin.custom_emojis.copy_failed_msg')
       end
 
-      redirect_to admin_custom_emojis_path(params[:page])
+      redirect_to admin_custom_emojis_path(page: params[:page])
     end
 
     def enable
-- 
GitLab