Menu Content

Support

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

can I disable translate for some URLs "#nogo"
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). 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

TOPIC: can I disable translate for some URLs "#nogo"

can I disable translate for some URLs "#nogo" 18 years, 2 months ago #590

Hi All,

I made small mambot for gallery. In this galley I'm using tags <a href="#nogo" ..... > </a>. ARTIO JoomSEF translate this link to en/page-2.html (source: index.php?option=com_content&task=view&id=13&Itemid=44〈=en#nogo )
The next click makes new url en/page-3.html (source: ndex.php?option=com_content&task=view&id=13&Itemid=44〈=en#nogo#nogo )

I'm using default .htaccess from Joomla distribution. Can somebody help me how can I solve this problem. I don't want translate any url with name "#nogo".

Thanks.

Best Regards,
Zdenek Rykala

Re:can I disable translate for some URLs "#nogo" 18 years, 2 months ago #592

Hello all,

may be I fund problem, but I would like discuss it, if I fixed it correctly. My opinion is that bug is in sef_ext.php ( JoomSEF v1.2.5 ).

Function sefGetLocation() is called with url which contains URI->anchor. Question is, if the bug is in this function or function which calls sefGetLocation().

I fixed function sefGetLocation() with following lines on the begin of function:
$URI_anchor = strrchr($url, "#");
if ( $URI_anchor !== FALSE)
{
$url = substr($url, 0, strlen($url) - strlen($URI_anchor));
}

Best Regards,
Zdenek

Re:can I disable translate for some URLs "#nogo" 18 years, 2 months ago #598

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello,

there has been a bug in joomsef.php file regarding the anchors.

To make a hot fix, just replace line 432 with following code:
if ($URI->anchor) $string = str_replace('#'.$URI->anchor, '', $string);

Then, the anchors will be stripped off the transated URLs correctly.

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