• Resolved xplacesc

    (@xplacesc)


    Hi, I’m actually trying to create a redirection for a Source URL like this (intended for a production environment to fix a problem we have discovered with our Marketing Automation solution and certain URLs in our website)

    ^/resources/webinars?commid=396801&utm_campaign=Webinar%20-%20Putting%20your%20Data%20to%20Work%20with%20Extended%20Reporting%20for%20Openbravo%20Commerce%20Cloud%20-%2016%2F04%2F2020&utm_medium=email&_hsenc=p2ANqtz-9IJUTnBcbs3jVY8Q9WpxEVvY9wbcukZa-seQ3CH7Fo0p75rNG05pd7wstsyrndsSuerQYv_x1Ssr7L3As7XJif671w2ShuUZCQSMBT_rUJwTezJ5E&_hsmi=85933062&utm_source=hs_email&utm_content=85933062&hsCtaTracking=17ca3ade-1387-4c43-a1d2-f9158dc9857c%7C54412924-d055-472b-8861-8c480e075644

    This is a URL generated by a marketing automation system, by adding some parameters to a basic URL (as part of a CTA button), which in this case was: /resources/webinars?commid=396801.

    My objective is to take this URL and redirect it to a Destination URL like this:

    https://www.mywebsite.com/webcast/12131/396801, where the last 6 digits are the ones for the commid parameter in the Source URL (rest of the destination URL is fixed, I only need to capture this ID).

    To achieve this I’m using this: ^/resources/webinars\?commid=(\d{6}).*

    but it doesn’t match the Source URL, and I guess it’s because of the additional parameters. I’ve tried a lot of options but nothing is working. If I remove everything after the commid=396801 in the Source URL, then it works.

    Any help?

    Thx!

    Xavi

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    You can use https://regex101.com to verify that your expression matches. You may also need to clear your browser cache when checking a redirect as your browser may have cached it.

    Thread Starter xplacesc

    (@xplacesc)

    Thanks John. I’ve already tried with regeex101.com and the thing is that it works there, but when I go to the browser, it doesn’t seem to work the same. And also have cleaned cache several times, both in Chrome and Safari… I’ll do some additional tests… 🙁

    Plugin Author John Godley

    (@johnny5)

    I’m not able to reproduce the problem. If I use your regex then the redirect always works, regardless of query params. Note that your site may be cached on the server as well.

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

The topic ‘Issue with Parameters in URL’ is closed to new replies.