From 86da89fd24f43e5deffd7a01dfe615ecdadd4a08 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 16 Sep 2019 20:25:42 +0800 Subject: [PATCH] Update archive_files_controller.rb --- app/controllers/admin/archive_files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/archive_files_controller.rb b/app/controllers/admin/archive_files_controller.rb index 5993cf7..d842a92 100644 --- a/app/controllers/admin/archive_files_controller.rb +++ b/app/controllers/admin/archive_files_controller.rb @@ -1,6 +1,6 @@ class Admin::ArchiveFilesController < OrbitAdminController def show - module_pages = Page.where(:module => 'archive').collect{|p| [p.name,p.url] } + module_pages = Page.where(:module => 'archive').collect{|p| p.url}[0] redirect_to '/' + I18n.locale.to_s + module_pages end def index