We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36963
    • 22 Posts
    Hello I just discovered om a legacy site in Evo that all links generated with the href="[~link~]" (and friendly URLS) are generating wrong paths:

    instead of 'folder1/folder2/doc1.html' I get 'folder1/folder2/folder1/folder2/doc1.html' ??

    all such links had been working for years... also, the links in the main navigation menu, generated with wayfinder, are working fine.

    I'm clueless so far,

    MODX_BASE_URL is correctly set to the site root,

    'Rewrite browser paths' is set to Yes in the site config,

    .htaccess has the standard:
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


    Anyone experienced such a glitch ?

    ciao, Thanks

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

    • discuss.answer
      • 36963
      • 22 Posts
      Solved: the main template was missing the '<base href="[(site_url)]" />' in the HTML header