I'm using a photo gallery template. When you click on a photo in the list that appears, it opens a new page perfectly. But it does not create a new page, it adds to the current page.
I noticed that the URL entered Itemid = 435
at the end of each link. If I remove this element the page works fine again. Any ideas how to prevent this from happening?
The code is this:
**<form action="index.php?option=com_igallery&view=category&id=<?php echo $this->category->id; ?>&Itemid=<?php echo $this->Itemid; ?>" method="post" name="ig_menu_pagination">**
<?php
if(count($this->categoryChildren) != 0)
{
?>
<div id="cat_child_wrapper<?php echo $this->uniqueid; ?>" class="cat_child_wrapper">
<?php
$counter = 0;
$columns = $this->profile->columns == 0 ? count($this->categoryChildren) : $this->profile->columns;
while( $counter < count($this->categoryChildren) )
{
for($i=0; $i<$columns; $i++)
{
if( isset($this->categoryChildren[$counter]) )
{
**$row = $this->categoryChildren[$counter];
$link = JRoute::_('index.php?option=com_igallery&view=category&igid='.$row->id.'&Itemid='.$this->Itemid);
?>**
<div class="cat_child" style="width: <?php echo $row->menu_max_width; ?>px;">
**<h3 class="cat_child_h3">
<a href="<?php echo $link; ?>" class="cat_child_a">
<?php echo $row->name; ?>
</a>
</h3>**