Conversation
supportHi, We found an issue with non-Latin URLs (for example Hebrew slugs) in the plugin output. The plugin currently generates: var request_uri = '<?php echo esc_attr( sanitize_text_field( $_SERVER['REQUEST_URI'] ) ); ?>'; Because sanitize_text_field() is used on $_SERVER['REQUEST_URI'] , Unicode characters in the URL path are replaced with dashes. For example: /blog/באיזה-שלב-כדאי-לעשות-poc-עם-חברה becomes: /blog/----poc----/ This malformed URL is then exposed in inline JavaScript, and Google Search Console detects it as a broken internal URL (404). Suggested fix: var request_uri = <?php echo wp_json_encode( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ); ?>; This preserves the original encoded UTF-8 URL safely for JavaScript usage.
No comments were stored for this source.