• Resolved lolopel

    (@lolopel)


    I’m really tight on time and can’t find a straight answer. I’m having a shortened url with a parameter https://xxxxxx.xxx/xxxxxx?b=whatever redirect clients to a wordpress post, in which I need to use that ‘b’ param. However once redirected to the post the parameter is nowhere to be found, even when using plugins like URL Params or GET Params I’m getting <blank value> like there’s nothing called ‘b’ on the url, and it’s true, you can’t see anything but my (still) ugly url that looks like [ redundant link removed ]

    The question is, what’s wrong with wordpress and urls with params coming from outside and how do I work around/through this.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • What is the full URL that the forwarding service is redirecting to? Does that inclue the ?b parameter?

    Thread Starter lolopel

    (@lolopel)

    The URL as is in the SMS received by the customer is something like https://xxxxx?b=https://xxxxxx/dUyia, the ?b= parameter is another URL. When clicking the link the url becomes [ redundant link removed ], with no parameters at all.

    • This reply was modified 5 years, 11 months ago by Jan Dembowski.

    In that case you need to get onto whatever URL forwarding service that you’re using and get that to append the value to the new URL. Unless that happens there’s no easy way to get that value.

    The only possibility of getting it without it being appended to teh final URL, which is most likely not going to work, is to check the HTTP referer that’s sent with the request. BUT, what’s set there will depend 100% on what the URL forwarding service decides to send you, so it could be almost anything.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not a Developing with WordPress topic.

    Thread Starter lolopel

    (@lolopel)

    @catacaustic the SMS service forwarding the URL is redirecting when reformatting the URL and the parameter gets lost during the conversion. I just skipped their url formatting, add the parameter and it works fine, plus I think the target client can trust some more if they can actually see the domain. Thanks to everyone.

    Thread Starter lolopel

    (@lolopel)

    Resolved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘redirecting to wordpress post with params’ is closed to new replies.