We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31373
    • 12 Posts
    I have a problem with ajax search

    I created few documents with their alias. some documents are on root level and some documents are under parent document.

    When i search any document using ajax search from root level document, search work fine. But when i do search from document under any parent document then search will not work and redirect me to modx start page.

    But if i use document id in url instead of document alias then search works fine.


    Example:

    Search works correctly in urls like
    http://www.brilliantstaging.com/ki-mobile/

    Not work in url like
    http://www.brilliantstaging.com/ki-mobile/about-mobile-marketing/about-ki-mobile.html

    I download ajaxsearch 1.7.1 and also set permission of every folder to 777.

    Please help me in solving this problem..................

      • 25663 MODX Staff
      • 12,272 Posts
      Try putting the following in your header before any calls to anything on your filesystem:

      <base href="[(site_url)]"></base>
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 31373
        • 12 Posts
        Thanks, It solves problem.

        Again thanks