Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default URL Parameters Break Links

    Is there a trick to getting URL Parameter links to work with category and manufacturer pages? Or rather, is it normal that URL Parameters break links?

    My sites that rewrite URL's to be static work fine with URL Parameters.

    My sites without URL rewriters cause links with URL parameters to lead to pages that display 'There are no products to list in this category.'

    Product links seem to be ok.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: URL Parameters Break Links

    A link to one of the site's displaying this behavior?

  3. #3
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: URL Parameters Break Links

    Was hoping not to have to provide a link

    Here is an example. Manufacturer page is:
    https://www.lindasdietdelites.com/in...turers_id=376?

    Link with URL Parameters might be:
    https://www.lindasdietdelites.com/in...719emailtolist

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: URL Parameters Break Links

    What plugin is injecting those utm_* variables?

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: URL Parameters Break Links

    The best way is a redirect. Is it all manufacturers pages being tagged or just some?

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: URL Parameters Break Links

    It isn't a plugin. It is basic Google UTM Parameters. They can't be hard coded into a redirect because they change all the time based on different marketing.

  7. #7
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: URL Parameters Break Links

    Think I figured it out. Because there is already a Query in the link (?) you need to start the UTM section with an & instead of a ?. For example:
    https://www.lindasdietdelites.com/index.php?main_page=index&manufacturers_id=376&utm_source=Funnel1&utm_medium=ema il&utm_campaign=032719emailtolist

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,515
    Plugin Contributions
    126

    Default Re: URL Parameters Break Links

    You could just remove the utm_* stuff by modifying init_includes/init_canonical.php (put it in init_includes/overrides/init_canonical.php). Add these parms to the $excludeParams array.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: URL Parameters Break Links

    Quote Originally Posted by swguy View Post
    You could just remove the utm_* stuff by modifying init_includes/init_canonical.php (put it in init_includes/overrides/init_canonical.php). Add these parms to the $excludeParams array.
    Or could use an observer off of:
    Code:
    $zco_notifier->notify ('NOTIFY_INIT_CANONICAL_PARAM_WHITELIST', $current_page, $excludeParams, $keepableParams, $includeCPath);
    And update $excludeParams to accomplish the same without the override.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: URL Parameters Break Links

    Quote Originally Posted by lindasdd View Post
    Think I figured it out. Because there is already a Query in the link (?) you need to start the UTM section with an & instead of a ?. For example:
    https://www.lindasdietdelites.com/index.php?main_page=index&manufacturers_id=376&utm_source=Funnel1&utm_medium=ema il&utm_campaign=032719emailtolist
    Yes, that should correct the issue.

 

 

Similar Threads

  1. v155 Detailed description of the sanitation of url parameters
    By torvista in forum Contribution-Writing Guidelines
    Replies: 5
    Last Post: 17 May 2021, 11:34 AM
  2. URL Parameters - Adding to Cart
    By djdavedawson in forum General Questions
    Replies: 6
    Last Post: 2 Jul 2013, 06:07 PM
  3. Adwords and URL parameters and Auto-Tagging...
    By keylesslocks in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2008, 07:11 PM
  4. Custom Dynamic Extra Pages with URL parameters, GET, POST - for Define and EZ Pages
    By bjoly in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jul 2006, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg