about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorKY <tkbky@users.noreply.github.com>2017-10-14 20:40:10 +0800
committerEugen Rochko <eugen@zeonfederated.com>2017-10-14 14:40:10 +0200
commit1bdd694a0a62c4dce608c5bd43d3015c072d8524 (patch)
tree3210044de6ed3d6db08b466a81587d90074a61cb /app/views/admin
parent2eab41cd1a38fd382a735f32c6ecba7ec193f6f2 (diff)
Fix #5351 - Redirection with page params after copy emoji (#5387)
* Fix #5351 - Redirection with page params after copy emoji

* Add page params to copy emoji link
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/custom_emojis/_custom_emoji.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/custom_emojis/_custom_emoji.html.haml b/app/views/admin/custom_emojis/_custom_emoji.html.haml
index 53263c43f..1fa64908c 100644
--- a/app/views/admin/custom_emojis/_custom_emoji.html.haml
+++ b/app/views/admin/custom_emojis/_custom_emoji.html.haml
@@ -10,7 +10,7 @@
       = custom_emoji.domain
   %td
     - unless custom_emoji.local?
-      = table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji), method: :post
+      = table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji, page: params[:page]), method: :post
   %td
     - if custom_emoji.disabled?
       = table_link_to 'power-off', t('admin.custom_emojis.enable'), enable_admin_custom_emoji_path(custom_emoji), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }