title tag duplicated

15 years 1 month ago #5298 by Saka
What is the non-sef link that you send as argument to the function?

Emir Sakic
www.sakic.net

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

15 years 1 month ago #5299 by polesworth
Hi,

The link is:

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

Thanks.

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

15 years 1 month ago #5300 by Saka
The link looks ok. I don't know then. If you send me the access info I will have a look.

Emir Sakic
www.sakic.net

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

15 years 1 month ago #5301 by polesworth
Hi,

Unfortunately I suspect I can't provide access - would you be able to create an instrumented version of the library (still encoded) or suggest a method I can debug myself?

Thanks in advance.

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

15 years 1 month ago #5302 by Saka
It's too much work for me. Sorry. If you can replicate on some other test site where you can provide access let me know.

Emir Sakic
www.sakic.net

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

15 years 1 month 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