redirect to referer_url after update

This commit is contained in:
EricTYL 2019-11-28 16:35:40 +08:00
parent 943a01091f
commit 20ca6213d1
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class Admin::WikiPagesController < OrbitAdminController
def update def update
wiki = WikiPage.find(params[:id]) wiki = WikiPage.find(params[:id])
wiki.update_attributes(wiki_page_params) wiki.update_attributes(wiki_page_params)
redirect_to admin_wiki_pages_path(:page_id => wiki.page.id) redirect_to params['referer_url']
end end
private private