JoomFish Advanced SEF

JoomFish Advanced SEF (JFSEF) is a component that solves one of the most annoying problems with JoomFish (2.0.4 ONLY). With the addition of a modified JFRouter (JFSEFRouter), and an override for some core Router behaviour, JFSEF forces the <base href=...> tag in the header to use the correct URL.

Without JFSEF:

<base href="http://example.com/cms/article" />

With JFSEF (href now matches the actual URL of the page):

<base href="http://example.com/cms/de/article" />

The result and benefits of this change guarantee that:

  1. anchor links on the page now work
  2. any component or module that relies upon JURI::base() and JURI::getInstance() now gets the real URL of the page, instead of something like http://example.com/cms/article?lang=en

It’s quite possible there may be unforeseen side-effects of this software, because it overrides the core libraries/joomla/application/router.php file. However it has had moderate testing and “works for me”.

Apart from that file override, the rest of the solution is relatively elegant. Feedback is welcome.

Installation:

Install the package as a normal Joomla package. It automatically unpublishes the core Joom!Fish JFRouter plugin, and installs and publishes its own JFSefRouter plugin, as well as the JFSEF plugin.

On installation, the core JFRouter plugin is re-enabled.

DOWNLOAD

Filter 
# Documents Downloads Size MB Created Modified
1 JoomFish Advanced SEF 1.1
Advanced SEF component for Joom!Fish, fixing the "base href" problem in the html header of JoomFish pages.

This version fixes a bug in v1.0 that caused 404 errors on the front page of the site, for any language other than the default language.
2049 0.041025 27.05.2010 27.05.2010
2 JoomFish Advanced SEF
Advanced SEF component for Joom!Fish, fixing the "base href" problem in the html header of JoomFish pages.

Don't use this version. It has a bug when displaying the front page of the site in any non-default language.
1124 0.04078 22.02.2010 27.05.2010