Redirection Feature – URL Query strings not working correctly

#328145
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Can you please share the affected URL with us so we can further check it on our end?

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    This cannot be controlled from our side since the fbclid is added automatically with a query parameter and it’s coming from Facebook.

    Our redirection runs first and as such after that, any query parameter that gets added is no longer controlled by our plugin and we can’t change that.

    Don’t hesitate to get in touch if you have any other questions.

    Hallo,
    that is not true.
    1. Facebook adds query string to source url
    2. Your plugin redirects to target url and copies url query parameters from source url to target url.

    The problem is, that your plugin copies them to the back of the url without parsing them first. As I said in initial message:

    “What your plugin should do is parse query strings from both urls (source and target) and then put them together again with correct syntax.”

    Thanks.

    Hello,

    Our plugin doesn’t support query parameter redirections in the source URL so if Facebook is adding that to the source URL our plugin is completely ignoring that query parameter, hence why it doesn’t parse it.

    Don’t hesitate to get in touch if you have any other questions.

    I am not sure you understand what the problem is. I am not trying to redirect based on url Parameter. I just want them to be forwarded correctly.

    Hello,

    We understand the situation but as we explained earlier there’s nothing we can do from our side in this situation.

    When the URL gets to the Rank Math redirector, if the query parameter by Facebook is already there it won’t matter because our plugin will ignore it and process the redirection as if there was no query parameter.

    Essentially turning the URL https://yourdomain.com/page?fbclid=text into https://yourdomain.com/page and processing the redirection as if the query parameter was not there.

    Don’t hesitate to get in touch if you have any other questions.

    But your plugin isn’t ignoring it, because the query string does get appended to the target url, just incorrectly.

    And what does “there’s nothing we can do” mean, this is your plugin, you can fix it.

    Hello,

    The plugin doesn’t account for that query parameter as being a query parameter. The reason it’s getting appended is that Facebook URLs add those query parameters.

    Our plugin doesn’t check if the source URL already contains a query parameter being sent through it, in this case via Facebook, and it just parses the redirection as if the query parameter didn’t exist.

    That’s the way the plugin currently works for the redirections and we already explained that the query parameter redirects, in the source URL, don’t work with our redirection module.

    Don’t hesitate to get in touch if you have questions about any other topic.

    I fixed the problem myself with a few lines of code. I made a pull request here: https://github.com/rankmath/seo-by-rank-math/pull/107

    Maybe you can ask your developers to approve it so i don’t have to fix this problem on every update of your plugin.

    Thank you very much!

    Hello,

    If you already submitted the pull request it’s out of our hands to approve or deny that.

    The devs are notified each time a pull request is added and they evaluate each one of them to see if it’s something they are considering adding to the plugin.

    Don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘Redirection Feature – URL Query strings not working correctly’ is closed to new replies.