Answers.Body: <p>I fixed it. I opened Administer -> System Settings -> Resource URLs.</p>
  
  <p>I then changed CiviCRM Resource URL from [civicrm.root]/ to administrator/components/com_civicrm/civicrm/</p>
  
  <p>I then removed my hack (the symbolic link), refreshed the contribution page and all is well. I also verfied by looking at the source for the contribution page and it show the correct urls for css and jquery now.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-11T16:27:21.133Z
Answers.Text: Yes, I've encountered the same thing - the variable `[civicrm.root]` is not evaluated correctly.  Now logged as https://lab.civicrm.org/dev/joomla/issues/5
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-12T04:59:20.530Z
Answers.Text: I confirm that this is a problem on a new CiviCRM 5.8 installation on Joomla 3.9.1.  On my own site I had been using the relative URL `administrator/components/com_civicrm/civicrm/` (I thought necessary due to my unusual two-headed install).
  
  Looking at the history of `Civi/Core/Paths.php` and `CRM/Utils/System/Joomla.php` (which seem like the obvious places) nothing relevant seems to have changed for a while so, unless it's somewhere else, it's probably not new to 5.8.
Answers.UserDisplayName: Andrew Thompson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-12T09:17:28.497Z
Answers.Text: I confirm @AndrewThompson's experience: on a new site it defaults to [civicrm.root]/ and that loads the wrong path front-end. On my two older and upgraded latest Civi/Joomla sites the relative URL has been there and there's no problems. I'm not sure when the relative URL was put there — I don't remember doing it myself but this sites have been running Civi a long time so it's not impossible.
Answers.UserDisplayName: Nic
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-11T15:08:14.160Z
Answers.LastActivityDate: 2018-12-11T15:08:14.160Z
Answers.UserDisplayName: Jay Edgar
Body: <p>I just upgraded to 5.8.0 and quickly noticed that my contribution pages didn't look the same. Using an html inspector the page is using just css from the joomla template and not civicrm.css. Looking at the source on the contributions page I see:</p>
  
  <p>link href="/components/com_civicrm/civicrm/css/civicrm.css?r=LSlvr" rel="stylesheet" type="text/css"</p>
  
  <p>However that is NOT where the civicrm.css file is located at. Its at administrator/components/com_civicrm/civicrm/css.</p>
  
  <p>I "fixed" it by creating a symbolic link in webroot/components/com_civicrm to the directory in the administrator directory. (this is not the right way to fix it, but it works now!)</p>
  
  <p>Is this a known problem? Is it something with my resource urls or directory settings? I've been playing with them without success. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T19:54:21.847Z
Comments.Text: I just looked at the source on the joomla demo site. There link href to the css (and others) use the administrator one. I'm on the right track, but don't have the answer yet. Why does my installation try to use a non-existent css in /components instead of /administrator/components?
Comments.UserDisplayName: Jay Edgar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T20:01:10.710Z
Comments.Text: My civicrm.settings.php file has: $civicrm_root = '/home/XXXX/public_html/administrator/components/com_civicrm/civicrm'; which seems right.
Comments.UserDisplayName: Jay Edgar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T20:04:04.523Z
Comments.Text: I have two copies of the settings file. One in administrator/components/com_civicrm/civicrm and the other in components/com_civicrm. Not sure if that is correct -but they both have the same value (and what appears to be the correct value).
Comments.UserDisplayName: Jay Edgar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T20:06:44.157Z
Comments.Text: And finally (perhaps) my resource urls screen shows the CiviCRM Resource URL as [civicrm.root]/
Comments.UserDisplayName: Jay Edgar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T20:17:09.657Z
Comments.Text: Just realized the Joomla demo is using civicrm 5.5.3 so its not an apples to apples test. I didn't see the problem until I upgraded. I could roll back - but my hack has it working for now.
Comments.UserDisplayName: Jay Edgar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T23:31:25.637Z
Comments.Text: Just upgraded another joomla installation to 5.8.0 and I did NOT see this problem. Will compare settings in the morning.
Comments.UserDisplayName: Jay Edgar
Tags: <joomla><css><directory><resource-urls>
Title: location of civicrm.css on Joomla
ThreadText: # location of civicrm.css on Joomla
  
  (Asked by: username_0 on 2018-12-10)
  
  I just upgraded to 5.8.0 and quickly noticed that my contribution pages didn't look the same. Using an html inspector the page is using just css from the joomla template and not civicrm.css. Looking at the source on the contributions page I see:
  
  link href="/components/com\_civicrm/civicrm/css/civicrm.css?r=LSlvr" rel="stylesheet" type="text/css"
  
  However that is NOT where the civicrm.css file is located at. Its at administrator/components/com\_civicrm/civicrm/css.
  
  I "fixed" it by creating a symbolic link in webroot/components/com\_civicrm to the directory in the administrator directory. (this is not the right way to fix it, but it works now!)
  
  Is this a known problem? Is it something with my resource urls or directory settings? I've been playing with them without success.
  
  **Tags:** joomla, css, directory, resource-urls
  
  > **Comments:**
  > **username_0**: I just looked at the source on the joomla demo site. There link href to the css (and others) use the administrator one. I'm on the right track, but don't have the answer yet. Why does my installation try to use a non-existent css in /components instead of /administrator/components?  
  > **username_0**: My civicrm.settings.php file has: $civicrm_root = '/home/XXXX/public_html/administrator/components/com_civicrm/civicrm'; which seems right.  
  > **username_0**: I have two copies of the settings file. One in administrator/components/com_civicrm/civicrm and the other in components/com_civicrm. Not sure if that is correct -but they both have the same value (and what appears to be the correct value).  
  > **username_0**: And finally (perhaps) my resource urls screen shows the CiviCRM Resource URL as [civicrm.root]/  
  > **username_0**: Just realized the Joomla demo is using civicrm 5.5.3 so its not an apples to apples test. I didn't see the problem until I upgraded. I could roll back - but my hack has it working for now.  
  > **username_0**: Just upgraded another joomla installation to 5.8.0 and I did NOT see this problem. Will compare settings in the morning.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-12-11. Score: 1
  
  I fixed it. I opened Administer -> System Settings -> Resource URLs.
  
  I then changed CiviCRM Resource URL from [civicrm.root]/ to administrator/components/com\_civicrm/civicrm/
  
  I then removed my hack (the symbolic link), refreshed the contribution page and all is well. I also verfied by looking at the source for the contribution page and it show the correct urls for css and jquery now.
  
  > **Comments:**
  > **username_1**: Yes, I've encountered the same thing - the variable `[civicrm.root]` is not evaluated correctly.  Now logged as https://lab.civicrm.org/dev/joomla/issues/5  
  > **username_2**: I confirm that this is a problem on a new CiviCRM 5.8 installation on Joomla 3.9.1.  On my own site I had been using the relative URL `administrator/components/com_civicrm/civicrm/` (I thought necessary due to my unusual two-headed install).  Looking at the history of `Civi/Core/Paths.php` and `CRM/Utils/System/Joomla.php` (which seem like the obvious places) nothing relevant seems to have changed for a while so, unless it's somewhere else, it's probably not new to 5.8.  
  > **username_3**: I confirm @AndrewThompson's experience: on a new site it defaults to [civicrm.root]/ and that loads the wrong path front-end. On my two older and upgraded latest Civi/Joomla sites the relative URL has been there and there's no problems. I'm not sure when the relative URL was put there — I don't remember doing it myself but this sites have been running Civi a long time so it's not impossible.  
  
  ---
  
  