Page 1 of 1
[invalid] CMSMS in a subdirectory: wrong css images url
Posted: Sun Jun 14, 2015 10:53 pm
by Franck
Tested on V2.0 r10036, compared with a V1.12 installation, with the very same settings and hosting.
When I put CMSMS in a subdirectory (say /cmsms/), pointing the domain name to this directory, root_url is then = domain.tld
CSS url is ok, but images called in the css with [[root_url]]/path/to/image.jpg results in a wrong path : domain.tld/cmsms/path/to/image.jpg
On a V1.12, with the same settings, CSS images URLS are ok, images are displayed.
Edited by Tomek: Set invalid.
Re: CMSMS in a subdirectory: wrong css images url
Posted: Mon Jun 15, 2015 12:12 am
by Jo Morg
I cannot reproduce this:
I have ALL my tests in localhost in sub-directories and for instance a installation under http://localhost/cmsms with a test stylesheet with
shows on the source code the expected
Code: Select all
/* cmsms stylesheet: foo modified: 06/14/15 20:02:56 */
/*http://localhost/cmsms*/
Did you clear the cache after moving?
Re: CMSMS in a subdirectory: wrong css images url
Posted: Mon Jun 15, 2015 7:47 am
by Franck
I did cleared the cache.
But I think you're missing the point: while my cmsms install is in a subdirectory, the cmsms site responds at the domain.tld, not subdirectory. The only elements not called properly are CSS images, all the rest is fine.
Re: CMSMS in a subdirectory: wrong css images url
Posted: Mon Jun 15, 2015 8:08 am
by velden
So you're saying that:
In page content {root_url} would render to '
http://domain.tld' while [[root_url]] in stylesheets renders to '
http://domain.tld/cmsms'?
Though I didn't code anything in cmsms it seems very unlikely that a different logic is used to determine the root_url.
Could you do a double check like the code JoMorg posted?
For both {root_url} in page content/template and [[root_url]] in stylesheet.
Then look at the real output (html source, source of stylesheet) and NOT that of a web inspector like F12, Developer Tools, Firebug etc.
Re: CMSMS in a subdirectory: wrong css images url
Posted: Mon Jun 15, 2015 8:19 am
by Franck
Hum, I tried once more (put back the install in a subdirectory, pointing domain to it), and everything is fine now. Don't know what happened.
Sorry for the noise.
