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
[SOLVED] Image upload path incorrect on nested pages
-
- New Member
- Posts: 6
- Joined: Thu Jul 18, 2013 8:29 pm
- Location: Amersfoort, The Netherlands
[SOLVED] Image upload path incorrect on nested pages
Last edited by bastiaan789 on Fri Jul 19, 2013 8:36 am, edited 1 time in total.
Re: Image upload path incorrect on nested pages with pretty
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
http://docs.cmsmadesimple.org/tags/core/metadata-tag
-
- New Member
- Posts: 6
- Joined: Thu Jul 18, 2013 8:29 pm
- Location: Amersfoort, The Netherlands
Re: Image upload path incorrect on nested pages with pretty
Thanks! That did the job!