title tag duplicated

14 years 7 months ago #5305 by polesworth
Hi there,

Looking at this in more detail, I suspect the problem is as follows:

sefRelToAbs is called from:
http://localhost/sectiontitle/categorytitle/mainpage.html

with the argument:

index.php?option=com_content&task=view&id=1234&Itemid=5678

SEF Advance is then rewriting this as:
http://localhost/sectiontitle/sectiontitle/categorytitle/contenttitle.html

Another test, deliberately passing in an invalid content id:

index.php?option=com_content&task=view&id=1

Gives:

http://localhost/sectiontitle/.html

Looking at the database queries, the SEF Advance is doing one query per content item:

SELECT i.title_alias AS item_title, c.title AS category_name, s.title AS section_name FROM jos_content AS i LEFT JOIN jos_categories AS c ON i.catid=c.id LEFT JOIN jos_sections AS s ON c.section=s.id WHERE i.id=1234

Whereas the other call results in three lookups:

SELECT title FROM jos_sections WHERE id=123

SELECT i.title_alias AS item_title, c.title AS category_name, s.title AS section_name FROM jos_content AS i LEFT JOIN jos_categories AS c ON i.catid=c.id LEFT JOIN jos_sections AS s ON c.section=s.id WHERE i.id=1

SELECT m.name AS menu_name FROM jos_menu AS m LEFT JOIN jos_content AS c ON m.componentid=c.id WHERE m.type='content_typed' AND c.id=1

Not sure there's much more I can pin down without source code.

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch