Support

What we can do for you

How to prevent duplicated URLs caused by ItemIDs?

ItemID is one of the most important and problematic part of Joomla! and SEF, check out the OSTraining tutorial for more info about what is ItemID http://bit.ly/chjojc

1. Problems

There are 2 main reasons of creating duplicated URLs from multiple ItemIDs:

1. One article/category pointed in 2 different menus
2. Some modules, not coded well, do not add the correct ItemID to non-SEF links, they add the ItemID of active page to links.

2. Case study

The following image is an example of the #1 problem. As you can see, on our live site we use 2 different menus to show the company's articles, Main Menu and Company Menu.

multiple


As per result, SEF components will generate 2 different records with the same SEF URL but different Real URL:

multiple 1


3. Solutions


Solution for problem #1
Since MijoSEF 1.5.4, we have implemented a smooth solution for this problem. You will have the oppurtunity to add an MijoSEF URL to any menu item:

multiple 2 multiple-itemids-04


So a second URL for that article won't be created. It's recommended to lock that SEF URL from MijoSEF=>URLs page because it's ID is stored in menu item.

Solution for problem #1 & #2
We have added 3 new options to solve this issue in a smart way.
The first option is MijoSEF=>Configuration=>URLs=>Ignore Multiple ItemIDs, the second one is MijoSEF=>Configuration=>URLs=>Find ItemID smartly and the third one is MijoSEF=>Extensions=>Your Extension (Content)=>Use Smart ItemID. The first and the second options are global but the second one is extension based which means it's not available for all extensions.

multiple 3 multiple-itemids-05


These 3 options will try to eliminate Duplicated URLs caused by multiple ItemID in an automatic way and creating just one URL/record for you. Of course, there is no 100% guaranteed automatic solution.

NOTE: Some components (like Zoo and Wrapper) recognize the page just using ItemID and do not add any other variable to the URL. For example in Zoo, applications added to menus are separated just by the ItemID and the other part of the URL is the same. In such a case you should turn off the MijoSEF=>Configuration=>URLs=>Find ItemID smartly option.


Support Channels

Paid Services