We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23217
    • 44 Posts
    (My apologies for a repost, I initially posted this in Module, Plugin & Snippet Usage, here seems more correct)

    I am new here, so please forgive any blunders.

    I have created a site using ModX (0.9.6.1 I believe) on my local computer (Apache, mysql). Works great. I just moved stuff up to a web server and stuff seems right mostly, but...

    I have some Wayfinder snippets that initially link to the web site page, but after I click one, links for some go to localhost. Is there an obvious thing I should look at?

    A few notes:
    1) The Wayfinder calls are very simple => [!Wayfinder? &startId=’22’ !] for example where 22 is a container with related pages.
    2) I am using the same template for all the pages in question.
    3) This is the first time I have moved a ModX site from one server to another.
    4) On initial entry to the site (whether from the manager or directly by surfing to the url), all the links seem to point to the correct (remote) location. Subsequent surfing to the location results in a localhost reference in the link.

    Thanks in advance.

    P
      • 25663 MODX Staff
      • 12,272 Posts
      Single-quotes won’t work for snippet parameters. Use backticks instead as follows:
      [!Wayfinder? &startId=`22` !]


      (That may not be the problem right now but it will be soon enough tongue )
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 4310
        • 2,310 Posts
        Did you upload your local .htaccess file with somehing like this in it?

        Options +FollowSymlinks
        RewriteEngine On
        RewriteBase /localhost/