Menu Content

Support

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

Problems with duplicated urls
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Problems with duplicated urls

Problems with duplicated urls 11 years, 10 months ago #37077

Hello,

I would appreciate if someone can help me solve this issue.

I am writing my own plugin, for own component. and there are some problems regarding duplicate urls.

I have 2 languages, english and turkish, and always get 3 urls for each thing, for example

option=com_yyy&view=xxx en/some-alias
option=com_yyy&view=xxx&lang=en en/some-alias
option=com_yyy&view=xxx&lang=tr tr/some-alias

How to disable first of them showing ?

Second problem is I have urls like this
option=com_xxx&var1=something
option=com_xxx&var=something&var2=something2

I want them to be same. They are same, but how to prevent them showing twice in URL list ?

It is big site, and it is important to me that I have smaller number of links. Also I can enter title just once instead of 2 times.

Thanks in advance
The topic has been locked.

Re: Problems with duplicated urls 11 years, 9 months ago #37355

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

I don't know what's causing the first problem with the URL without the lang variable being created. We'll test it.

For the second problem, if var2=something2 is not required in the URL as the SEF URL is the same without it, you should use the beforeCreate function in JoomSEF plugin to remove it from the URL, for example:

public function beforeCreate(&$uri)
{
if ($uri->getVar('var2') == 'something2') {
$uri->delVar('var2');
}
}


That way only one version of the URL will be used and stored in JoomSEF's database.
ARTIO Support Team
The topic has been locked.

Re: Problems with duplicated urls 11 years, 9 months ago #37356

  • dajo
  • OFFLINE
  • Posts: 5069
One more thing, what versions of Joomla and JoomSEF do you use? And do you use native multilanguage in Joomla or the FaLang component?
ARTIO Support Team
The topic has been locked.

Re: Problems with duplicated urls 11 years, 9 months ago #37509

  • dajo
  • OFFLINE
  • Posts: 5069
Could you please also post your settings in JoomSEF's Configuration on the Language tab? Thank you.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty