You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for this plugin! I haven't used it yet, but my tests ran OK - almost everything seems to work, except one (very) special case:
The plugin created a wrong redirect for edited custom taxonomy slug (SLUG: from "globally2-edited" to "globally2-edited2"):
plugin created redirect from /permalinks1/permalinks1/gg/globally2-edited to /permalinks1/gg/globally2-edited2
The wrong thing is the doubled "/permalinks1/permalinks1" in the URL_FROM. (I'll describe where it comes from below...)
I checked the same for Post types and it works fine there (quite unexpected to me, but it's good news)!!
Now, here is my setup WP installation:
I'm using WP Multisite installation with sites in a directory (not on subdomain).
I created /permalinks1 - a new Site from the same multisite network
I used PODS to create a CPT and a custom taxonomy and I tested the URLs for default WP "post" type and my CPT type "blog". Then I added custom taxonomy for both: "global-tag".
I enabled the Permalinks Customizer plugin for this particular site (NOT network enabled!) and set some URLs in the settings: gg/%slug% (for taxonomy) and "post-type-url/%postname%" (for "post" type).
I created: a new "post", a new "blog" post. Then added a new "global-tag".
Now it was time to test the auto-redirection functionality of the plugin, by editing the custom taxonomy slug. When I edited an existing global-tag slug, the plugin created automatic redirect:
/permalinks1/gg/globally2-edited | /gg/globally2-edited2
However, the redirect wasn't working and I noticed that the URL_FROM was shown as "/permalinks1/gg/globally2-edited", but it was linked as "EXAMPLE.COM/permalinks1/permalinks1/gg/globally2-edited", where the site directory "permalinks1" is added twice (doubled): /permalinks1/permalinks1/....
As I said, tested this on custom post type and it is working properly there!
Tested the same multiple times on custom taxonomy:
-- from globally2-edited2 to /gg/globally2-edited3 - same bug
-- from globally2-edited3 to /gg/globally2-edited4 - same bug
I hope that would be enough to catch the bug for taxonomy, especially because the same doesn't happen for post type.
I haven't tested the following setup, but it may have the same issue:
instead of WP multisite with directories, the same issue could be simulated for WP installation in a subdirectory - https://wordpress.org/support/article/giving-wordpress-its-own-directory/
If the issue depends on wrong logic, then the URL part of the directory could be used twice (doubled) for this type of installation.
The DEV installation is still available, so if you have any questions, I could make few more tests, even using a patched code (I can replace some lines of code manually and test them).
And last - the WP version is 5.2.4, not yet updated to 5.3.2, but that shouldn't be an issue. Just check how "URL_FROM" is generated for taxonomies and why the directory-part is added twice, thus generating a wrong URL.
The text was updated successfully, but these errors were encountered:
First, thank you for this plugin! I haven't used it yet, but my tests ran OK - almost everything seems to work, except one (very) special case:
The plugin created a wrong redirect for edited custom taxonomy slug (SLUG: from "globally2-edited" to "globally2-edited2"):
The wrong thing is the doubled "/permalinks1/permalinks1" in the URL_FROM. (I'll describe where it comes from below...)
I checked the same for Post types and it works fine there (quite unexpected to me, but it's good news)!!
Now, here is my setup WP installation:
/permalinks1/gg/globally2-edited | /gg/globally2-edited2
However, the redirect wasn't working and I noticed that the URL_FROM was shown as "/permalinks1/gg/globally2-edited", but it was linked as "EXAMPLE.COM/permalinks1/permalinks1/gg/globally2-edited", where the site directory "permalinks1" is added twice (doubled): /permalinks1/permalinks1/....
-- from globally2-edited2 to /gg/globally2-edited3 - same bug
-- from globally2-edited3 to /gg/globally2-edited4 - same bug
I hope that would be enough to catch the bug for taxonomy, especially because the same doesn't happen for post type.
I haven't tested the following setup, but it may have the same issue:
If the issue depends on wrong logic, then the URL part of the directory could be used twice (doubled) for this type of installation.
The DEV installation is still available, so if you have any questions, I could make few more tests, even using a patched code (I can replace some lines of code manually and test them).
And last - the WP version is 5.2.4, not yet updated to 5.3.2, but that shouldn't be an issue. Just check how "URL_FROM" is generated for taxonomies and why the directory-part is added twice, thus generating a wrong URL.
The text was updated successfully, but these errors were encountered: