getThemePath() no longer working after half a year.

Permalink
Hi,

I run a website with concrete5 (5.6.3.1) since about half a year. Since today, there is something wrong with
getThemePath()
. Hyperlinks, included CSS/JS files and so on are not working any more:

<link rel="stylesheet" type="text/css" href="//concrete/css/ccm.base.css" />
<script type="text/javascript" src="//concrete/js/jquery.js"></script>
...
<link href="//themes/mytheme/style/style.css" rel="stylesheet" type="text/css">


When I add the following lines to the template...
<?php echo $this->getThemePath(); ?>

...I get:
//themes/mytheme


I think this should be:
/themes/mytheme


I did not perform any updates or changed something. My hoster didn't do any updated as well (due to his webpage).

Any ideas what happened?

 
Trebxuor replied on at Permalink Reply
Trebxuor
Hi cmx,

This is indeed strange.

Alternatively for your css you can try:
<?php echo $this->getStyleSheet('defualt.css'); ?>


or you can try this code to navigate to your theme path:
<?php
  $v = View::getInstance();
  $themePath = $v->getThemePath();
?>
//And then something like
<link rel="stylesheet" type="text/css" href="<?php echo $themePath; ?>/style.css">


These are merely other ways to navigate to your files but give them a try.