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')
|
||||
flash.now[:notice] = t('update.success.content')
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_page_url(@part.page, edit: true)
|
||||
}
|
||||
format.js
|
||||
end
|
||||
else
|
||||
@id = params[:id]
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
window.location.href="<%= admin_page_url(@part.page, edit: true) %>"
|
Reference in New Issue