/component/com_content/views/article/tmpl/default.php
to include $this->parent like this:
Code: Select all
<h1>
<?php
echo '<a href="' . JRoute::_(ContentHelperRoute::getArticleRoute($this->parent)) . '">';
echo $this->escape($this->params->get('page_heading')) . '</a>';
?>
</h1>
Here's the test site with a working version of the h1 link...
...and here's the same page on the live site where the identical hack yielded an empty id on the end of URL. For now, I've got around it with:
Code: Select all
str_replace("?id=", "", JRoute::_(ContentHelperRoute::getArticleRoute($this->parent)))