Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Duplicate site base url in first link
(1 viewing) (1) Guest
Support forum for users using free JoomSEF extensions. These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: Duplicate site base url in first link

Re: Duplicate site base url in first link 10 years, 3 months ago #18967

Hi David,

The urls display like the below when i completely disable SEF:

index.php?option=com_auto&model=Acura&siteid=213711&uniqueid=1

and here are the code i am using in module to display the links


<ul><?php
foreach ($list as $item) :

$link1 = "index.php?option=com_auto&siteid=" . $item->site_id . "&uniqueid=" . $item->unique_id . "&model=" . $item->model_name;
?>

<li><a href="<?php echo JRoute::_($link1); ?>"><?php echo $item->model_name; ?></a></li>

<?php endforeach; ?>

</ul>

As i told you all the links other than the first link in this loop working well. i notice there is a '/' just before the very first link anchor tag, like this '/firstlink.html' this causing problem, other than first link there is on '/' thats why other working well and the first link have a additional site url.


thanks for your help.

Kind Regards
Sanjeev.

Re: Duplicate site base url in first link 10 years, 3 months ago #19045

  • dajo
  • OFFLINE
  • Posts: 5072
In that case, please check your custom SEF extension for your component, since that is the place where the SEF URL is created, so the "/" at the beginning is probably added there.

Best regards,
ARTIO Support Team
ARTIO Support Team
  • Page:
  • 1
  • 2
User Login Empty