Page 1 of 1

[SOLVED] Image upload path incorrect on nested pages

Posted: Thu Jul 18, 2013 9:10 pm
by bastiaan789
When I add an image to a content block in a nested page (like "http://www.mydomain.com/page1/page-nr-two") the images are not loaded correctly because the image path is set incorrectly.

Images are referenced as: "http://www.mydomain.com/page1/page-nr-t ... -image.jpg"

The correct path should be: "http://www.mydomain.com/uploads/images/my-image.jpg"

What am I doing wrong?

- It is a clean install of 10.11.7 onto a new domain.
- Using MicroTiny or TinyMCE makes no difference
- Pretty URLs are on ($config['url_rewriting'] = 'mod_rewrite';)
- Copied the contents of docs/htaccess.txt into a .htaccess file in my site root

Thanks in advance!

Bastiaan

Re: Image upload path incorrect on nested pages with pretty

Posted: Fri Jul 19, 2013 8:18 am
by velden
When you use the {metadata} tag it will by default add a <base> tag that will take care of that.

http://docs.cmsmadesimple.org/tags/core/metadata-tag

Re: Image upload path incorrect on nested pages with pretty

Posted: Fri Jul 19, 2013 8:31 am
by bastiaan789
Thanks! That did the job!