Google Issue: Custom query parameter not defined in target URL

#134926
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Currently, there is no setting in the plugin to solve this issue.

    You can try customizing and adding the following filter to your theme functions.php to defined the site links URL and keep it from being modified in translation:

    
    add_filter( 'rank_math/json_ld/search_url', function( $url ) { if ( 'es' === ICL_LANGUAGE_CODE ) { return 'https://your_site_url.com/?s={search_term_string}'; } return $url; } );

    I hope this helps. Looking forward to helping you. Thank You.

    unfortunately I have no clue from coding so I have no clue where to add this. Could you maybe assist with that?

    Hello,

    Thank you for providing your details.

    We have added the code into your snippet plugin.

    Please see the screenshot below:
    ss-1

    Please check if the code is working for you.

    I hope that helps. Let us know if you need further assistance.

    Thank you.

    may be you are doing anything wrong bcz its has sooo less chances of error thats why i am saying this to you but if you do not understand me then you can see here for more help

    Hello,

    I checked the URL you shared with Google Rich Results test tool and it seems perfectly fine from my end, here is a screenshot: https://i.rankmath.com/iLqtjR

    If you are having the issue on Google, please perform a URL inspection to validate your page again and if the issue still persists, do share a screenshot using a tool such as https://imgbb.com

    Hope this helps you. Thank you

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Google Issue: Custom query parameter not defined in target URL’ is closed to new replies.