ModX wont work without absolute paths

216 Views Asked by At

I have built a site on Revo 2.1.3. All went well except for the site paths. Where I used to link to an image like:

assets/images/photo.jpg

It now wont work (appears as broken link) unless I put the complete path,e eg:

http://example.com/assets/images/photo.jpg

This isnt such a big deal changing the image paths, but it totally breaks Wayfinder.

Does anyone know a way to fix this?

1

There are 1 best solutions below

0
On BEST ANSWER

My templates were missing:

<base href="[[++site_url]]" />