Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34
  1. #31
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: GET query string being stripped from url

    Yes. The only change I made was to have all pages load with https in the config file.

  2. #32
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: GET query string being stripped from url

    Quote Originally Posted by badarac View Post
    Yes. The only change I made was to have all pages load with https in the config file.
    Well, that was one way to address it, but I can think of two others. One for the modules code and the other for the customized code.

    For the module's header_php.php:
    Code:
    } // end action==send
    
    
    if (ENABLE_SSL == 'true' && $request_type != 'SSL') {
      zen_redirect(zen_href_link(FILENAME_REQUEST_A_QUOTE, zen_get_all_get_params(), 'SSL'));
    }
    The other fix is to not hardcode links into files... use zen_href_link style functions. For pages being directed to this type functionality where information is expected to use https (when available) the zen_href_link should attempt to use SSL if it is available. By requesting the link to be generated with SSL, if the system is not setup to support then it won't be attempted and the redirect won't occur.

    As for the changes made to the site, would verify that the canonical links are properly populated as supported by Zen Cart versions at least at and more recent to ZC 1.5.3 (maybe 1.5.1 I can remember) that other templates may not have made available. At one point the https pages were not provided canonical links by design.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #33
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: GET query string being stripped from url

    Quote Originally Posted by mc12345678 View Post
    Well, that was one way to address it, but I can think of two others. One for the modules code and the other for the customized code.

    For the module's header_php.php:
    Code:
    } // end action==send
    
    
    if (ENABLE_SSL == 'true' && $request_type != 'SSL') {
      zen_redirect(zen_href_link(FILENAME_REQUEST_A_QUOTE, zen_get_all_get_params(), 'SSL'));
    }
    I added that and as expected it works correctly. Thanks
    The other fix is to not hardcode links into files... use zen_href_link style functions. For pages being directed to this type functionality where information is expected to use https (when available) the zen_href_link should attempt to use SSL if it is available. By requesting the link to be generated with SSL, if the system is not setup to support then it won't be attempted and the redirect won't occur.

    As for the changes made to the site, would verify that the canonical links are properly populated as supported by Zen Cart versions at least at and more recent to ZC 1.5.3 (maybe 1.5.1 I can remember) that other templates may not have made available. At one point the https pages were not provided canonical links by design.
    Unfortunately this was created long before I got here. This customer does not use zencart as a shopping platform. They do everything via quotes, e-mail, and phone. The links are hardcoded directly into each product description in tables. Each product has a table which contains a link in each row to the request for quote page and passing a unique item number and the current product id in a query string. In other words I'm stuck with this implementation.

  4. #34
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: GET query string being stripped from url

    Quote Originally Posted by badarac View Post
    I added that and as expected it works correctly. Thanks


    Unfortunately this was created long before I got here. This customer does not use zencart as a shopping platform. They do everything via quotes, e-mail, and phone. The links are hardcoded directly into each product description in tables. Each product has a table which contains a link in each row to the request for quote page and passing a unique item number and the current product id in a query string. In other words I'm stuck with this implementation.
    A shame about having to hard code the links, but if nothing else and because they are in the description text, may I recommend that if they are or can be relative to the current store that they be entered that way: ie. instead of having http or https ://domain /subfolder etc... that they be relative to whatever the source code has for the base href tag... cuts down on a few things, but wouldn't have prevented the redirect from firing.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v154 How to Get Count from Last Delete Query - Row Affected?
    By kwright in forum General Questions
    Replies: 3
    Last Post: 21 Feb 2016, 06:16 PM
  2. URL ends with a query string
    By lieven23 in forum General Questions
    Replies: 0
    Last Post: 18 Aug 2009, 09:24 PM
  3. How to remove zenid in query string?
    By suman07 in forum General Questions
    Replies: 6
    Last Post: 5 Feb 2008, 11:48 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR