Menu Content

Support

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

Anchors/Bookmarks
(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
  • 2

TOPIC: Anchors/Bookmarks

Re:Anchors/Bookmarks 17 years, 10 months ago #1251

  • rick
  • OFFLINE
  • Posts: 3
Hey i found a fix for this on joomla...
extensions.joomla.org/component/option,c...k_id,1063/Itemid,35/

Hi all

this component is great, however when it comes to anchors there is a problem, I have a link to an anchor "#top" at www.mysite.com/article1.html , when you hover over the link you expect that it will get : www.mysite.com/article1.html#top , but no, it will get www.mysite.com/#top , this is fixed by going to this file : mambots/content/mossef.php and edit the "else if" starting at line 79 to be :

else if ( strpos( $matches[1], '#' ) === 0 ) {
// special handling for anchor only links
$url = $_SERVER['REQUEST_URI'];
$url_1 = $url; ///// my fix
$url = explode( '?option', $url );

if (is_array($url) && isset($url[1])) {
$link = 'index.php?option'. $url[1] . $matches[1];
} else {
$link = $matches[1];
}
// convert url to SEF link
$link = sefRelToAbs( $link );
$link = sefRelToAbs( $url_1 ).$link; //// my fix
// reconstruct html output
$replace = 'href="'. $link .'"';

return $replace;
}

Re:Anchors/Bookmarks 14 years, 10 months ago #10095

Looks like this is a fix for Joomla 1.x?

I have Joomla 1.5 and have just started experiencing this issue.

There isn't a "Mambots" directory anymore in joomla 1.5, and I couldn't find the file referenced above to edit.

Has anyone figured out how to address this issue in Joomla 1.5?

Much appreciated!

Re:Anchors/Bookmarks 14 years, 10 months ago #10135

  • jaku
  • Page:
  • 1
  • 2
User Login Empty