]> cat aescling's git repositories - mastodon.git/commitdiff
Fix copying emojos: redirect to the page you were on (#5509)
authorerin <sylphofelectricity@gmail.com>
Thu, 26 Oct 2017 14:44:24 +0000 (09:44 -0500)
committerunarist <m.unarist@gmail.com>
Thu, 26 Oct 2017 14:44:24 +0000 (23:44 +0900)
app/controllers/admin/custom_emojis_controller.rb

index 5cce5bce4667d7bae3db728f1eca832ad9624d55..5d9144be7b27caab2ac2d9f3cf2e14b32fc26111 100644 (file)
@@ -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