pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Error in redirecting after pods deletion #7137

Closed paoloimpelluso closed 1 year ago

paoloimpelluso commented 1 year ago

Description

Hi folks, if WP if installed in subdirectory (for example a staging environment like https://demo.example.com/site.com/) there's a problem when deleting a POD. After deletion the browser is redirected to root server, like: https://demo.example.com/wp-admin/admin.php?page=pods&deleted=1 and subdirectory site.com is missing.

Version

2.9.19

Testing Instructions

install WP on a subdirectory like https://demo.example.com/site.com create a pod go to edit pod click on "delete pod" button

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

No response

Pods Package

No response

JoryHogeveen commented 1 year ago

https://github.com/pods-framework/pods/blob/2.9.19/ui/js/dfv/src/admin/edit-pod/postbox.js#L39-L40

sc0ttkclark commented 1 year ago

Fixed via https://github.com/pods-framework/pods/pull/7162