Changing default query URL

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Changing default query URL

This topic contains 11 replies, has 2 voices, and was last updated by willgreeny59 willgreeny59 3 months, 1 week ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #45992
    willgreeny59
    willgreeny59
    Participant

    Hello,

    How can I change the default URL search of Ajax Search Pro from ‘?phrase=’ to something like ‘#search/q=’?

    Kind regards,

    Will

    #46004
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Will,

    You can adjust that URL via these settings: https://documentation.ajaxsearchpro.com/behavior/return-key-and-magnifier-icon-click-actions

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #46029
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
    #46037
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I think there might be missing a query separator, the “?” sign. When I do it like this on my local server:

    /#search/?q={phrase}

    Then it seems to work correctly. This should do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #46072
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
    #46073
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Okay, how about an & mark instead of the “?”:

    /#search/&q={phrase}

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #46074
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
    #46075
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It should work like that, if I try it on my local server with this:

    /#search/q={phrase}

    It redirects me perfectly. You may have a script there or a .htaccess mod_rewrite rule that also affects that and converts the URL after redirection. It should work with anything you put in there. Some browsers do treat the anchors differently and prevent redirection when they see one, so that’s why I recommended the “?” or “&” to basically trigger that.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #46076
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
    #46083
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    On my end it works on any given page, home, subpages, regardless of the URL. I tried to trigger the error but no luck unfortunately.

    If you want, you can add temporary FTP and back-end access, I can take a look.

    Before that I would start by removing any custom code you may have, disabling all plugins temporarily, reverting the .htaccess file to default to see if anything changes. If it works then, then there is a conflict somewhere. If not, then it is still possible that the borwser just does not trigger a location change only based on the hashtag without query arguments.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #46089
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
    #46090
    willgreeny59
    willgreeny59
    Participant
    You cannot access this content.
Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.