Forums Forums Search & Filter Pro Correct way to show SearchFilter results with aliased domains

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #257244

    Hello Trevor, team,

    We have two site domain names, x.com and y.com, pointing to the same WP content. Right now, the search filter references one of those names, so all is good when on x.com, but when on y.com, as soon as one sorts, the page defaults to x.com. Can you recommend relative link I can use instead of an absolute link?

    https://imgur.com/a/m1zFDWW

    Thank you! mb

    Trevor
    #257259

    Are these actually separate WordPress installs (and thus have separate databases)?

    If they are, is the content only in on database, or both (kept synchronized)?

    Are they on a multisite install?

    Anonymous
    #257265

    One WordPress install, with (actually) three total domain aliases!

    Anonymous
    #257267

    But two are production aliases

    Trevor
    #257269

    You may need to use this filter:

    https://searchandfilter.com/documentation/action-filter-reference/#modify-urls

    You might find some examples of usage with this search:

    https://support.searchandfilter.com/forums/search/sf_results_url/

    You would need to write some code to detect which alias you are on to write the URL.

    Anonymous
    #257291
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)