We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36604
    • 268 Posts
    Hi,

    I recently add a SolR server and some connector have been made to query the SolR data and make them appears on the modx web server frontend.

    I'm facing the following issue on Edge only (IE is ok):

    For each previously clicked facets, we build some 'breadcrumbs' with one button per previously activated facet, in order to 'unclick' it and get back to a previously search state.
    those buttons contain:
    <li><a class="btn btn-small" href="catalogue-solr/?etat=0" title="" data-original-title="Retirer ce critère "><i class="el elu_icon-remove-sign"></i>  Type Produit: GC
    </a><span class="divider">/</span></li>
    

    to make this, we have the following tpl chunk for those links:
    <li><a class = "btn btn-small" href="[[~[[*id]]]]/?etat=[[+etat_precedent]]" title="[[%i18n.EnleverCritiere? &namespace=`i18ncustom`]] "><i class="el elu_icon-remove-sign"></i>  [[+valeur_Facet_Detail]]
    </a><span class="divider">/</span></li>


    And the onclick action is correct and works perfectly
    except
    for EDGE where the url is duplicated!
    the correct back url would be :
    //domain.tld/catalogue-solr/?&fq=product_type:'GC'

    And with Edge it's:
    //domain.tld/catalogue-solr/catalogue-solr/?&fq=product_type:'GC'

    so this is firing a 404 error of course.

    Any help appreciated.
    Thank you

    This question has been answered by elz064. See the first response.

    [ed. note: elz064 last edited this post 9 years, 2 months ago.]
    • discuss.answer
      • 36604
      • 268 Posts
      Solved

      ok, the issue was coming from the construction of the link

      <li><a class = "btn btn-small" href="[[~[[*id]]]]/?etat=[[+etat_precedent]]" title="[[%i18n.EnleverCritiere? &namespace=`i18ncustom`]] "><i class="el elu_icon-remove-sign"></i>  [[+valeur_Facet_Detail]]
      </a><span class="divider">/</span></li>


      The trailing / is added by modx so it should not be manually added in the link tpl here:
      href="[[~[[*id]]]] here ->/ <-   ?etat=[[+etat_precedent]]"

      This generates a double trailing slashes and by some magic Edge adds the page url twice in this case...