• Resolved davedg629

    (@davedg629)


    We have certain URLs that we want to redirect that have a variety of query parameters added to them for tracking purposes (e.g. /test?utm_parameter=campaign).

    I’m not certain, but I believe the latest update to the plugin changed the way the plugin works with query parameters. Instead of ignoring them, it now uses them to match the URL redirect rules setup in the plugin.

    For example, if I have the following rule setup:

    /test -> /canada/test

    This rule won’t count as a match if the URL visited is:

    /test?utm_parameter=campaign

    To get around this, I’ve had to edit the plugin file so that the query parameters are ignored when matching a URL redirect rule. It’d be nice to have an option with each redirect rule to either use to or ignore query parameters in the visitors URL.

    Thanks!

    • This topic was modified 5 years, 3 months ago by davedg629.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ip2location

    (@ip2location)

    Can you enable the debugging log in the plugin and check the debug.log generated to see if the URL is matched?

    Thread Starter davedg629

    (@davedg629)

    I checked the debug log and the case I described above is logged as “Not a match” (don’t remember the specific wording).

    Plugin Author ip2location

    (@ip2location)

    It seems like you are using the rule that match by URL. Please change it to match by Page to ignoring the parameters.

    Thread Starter davedg629

    (@davedg629)

    @ip2location – Yes, I’m using the “Match by URL” rule, because a page doesn’t exist for the URL that I’d like to match. I could create a page just for this purpose, but I’d rather not create unnecessary pages.

    It’d be nice to have a “Ignore Query Parameters when matching URL” setting for each redirect.

    Thanks!

    Plugin Author ip2location

    (@ip2location)

    We will add this into our to-do list.

    Thread Starter davedg629

    (@davedg629)

    Thank you!

    Hi @ip2location,

    Is there a way now to “Ignore Query Parameters when matching URL”?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Allow query parameters in URL to be ignored’ is closed to new replies.