Quick Fix the missing “?” in the url when using select

Forums › Forums › Search & Filter Pro › Quick Fix the missing “?” in the url when using select

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #269181

    Quick Fix the missing “?” in the url when using select

    /search-filter-pro/public/assets/js/search-filter-build.js line:4312

    Don’t forget to regenerate the search-filter-build.min.js

    /////// CODE /////////

    this.updateUrlHistory = function(ajax_results_url)
    {
    //ERIC LANGLOIS
    //EMBLEME COMMUNICATION
    //FIX THE MISSING “?”
    if(ajax_results_url != ”){
    if(ajax_results_url.startsWith(“?”) != true ){
    ajax_results_url = “?”+ajax_results_url;
    }
    }

    var self = this;

    var use_history_api = 0;
    if (window.history && window.history.pushState)
    {
    use_history_api = $this.attr(“data-use-history-api”);
    }

    if((self.update_ajax_url==1)&&(use_history_api==1))
    {
    //now check if the browser supports history state push 🙂
    if (window.history && window.history.pushState)
    {
    history.pushState(null, null, ajax_results_url);
    }
    }
    }

    Trevor
    #269201

    Is this a fix you have written? The ? missing may be indicative of a setup issue, for example a missing Results URL setting in the form.

Viewing 2 posts – 1 through 2 (of 2 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.