Hello @likedigital
Thank you for reaching out and I am happy to help!
I’ve checked this with the Dev team and it seems like a possible bug. We are workin on a fix for this.
What you can do is change the .htaccess prermissions and preven any writer permissions to make sure .htaccess is not changed for now.
I’ll keep you posted on the proccess
Thanks!
Hello @likedigital
Thank you for your patience.
Can you please make the update of the file below and let me know if this helps!?
diff --git a/Util_Environment.php b/Util_Environment.php
index 4530fc3f..3517bfa0 100644
--- a/Util_Environment.php
+++ b/Util_Environment.php
@@ -852,13 +852,16 @@ class Util_Environment {
*/
if ( self::is_url( $uri ) ) {
$uri = wp_parse_url( $uri, PHP_URL_PATH );
+
+ // Remove query string arguments from the URI.
+ $uri = strtok( $uri, '?' );
}
if ( empty( $uri ) ) {
return '/';
}
- return $uri;
+ return trailingslashit( $uri );
}
Let me know if this helpls!
Hello!
We have try your update but after some days the problem reappered.
Hello @likedigital
Thank you for your feedback and sorry for the late reply!
Are you reffering that the .htaccess part was rewritten again??
Thanks!