Updated redirect path after saving a page
This commit is contained in:
parent
3744e1c3e7
commit
591a3e0bc4
|
@ -95,9 +95,7 @@ class Admin::PagePartsController < OrbitBackendController
|
||||||
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')
|
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')
|
||||||
flash.now[:notice] = t('update.success.content')
|
flash.now[:notice] = t('update.success.content')
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.js
|
||||||
redirect_to admin_page_url(@part.page, edit: true)
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@id = params[:id]
|
@id = params[:id]
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
window.location.href="<%= admin_page_url(@part.page, edit: true) %>"
|
Reference in New Issue