• Home
  • Get help
  • Ask a question
Last post 12 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67849
All time tickets 10486
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#65 – K2 Search generates duplicate sef urls

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 14 April 2015 05:09 UTC
frank
Hello,

I do run a Joomla 3.4.1 site with K2 2.6.9. I do have 2 menu items - one is called "Menu A" which is showing K2 items of category 4 and "Menu B" which is showing only items of category 10.

Within these two different Menus I do show a K2 tools module "Search box" the one is searching within category 4 and the other one in category 10. This works fine.

Now with SH404SEF which is new on our system we do having the following problem:

If I search in category 4 I do get the correct search results and the sef url which gets shown is index.php/search?searchword=tech&categories=4 and the correct joomla menu item (itemid=60) is highlighted

If I do search in category for I also getting the correct search results and the sef url which gets shown is index.php/search?searchword=tech&categories=10

The problem is that now the menu item with itemid=60 gets highlighted and not the correct one which would be itemid=137.

Making a long sentence short: I do have duplicate sef urls if I use the K2 search. How can I avoid this? I still want to keep SH404SEF for K2 sef url handling.

Thanks
Frank
Tuesday, 14 April 2015 08:28 UTC
wb_weeblr
Hi

I do have duplicate sef urls if I use the K2 search
Well, no. You have the opposite, you have URL for (what you consider in that case) different content.
Because they are for the same function (search), I assume the K2 developers (who did the URL plugin for sh404SEF) choose to not include the category in the URL, and so the same /search url is used regardless of the category.

If you only have one or a few menu items with this problem, I would suggest that the simplest fix is to manually customize the urls to make them distinct.
For instance, /search/category-a and /search/category-b

That's done in the URL manager, by finding the /search URL and modifying it, then doing the same for the reamining /search URL

Rgds
 
Wednesday, 15 April 2015 05:05 UTC
frank
Thanks. That sounds like a solution. I will close the ticket...

Anyway is there a way in sh404sef that duplicate entries for one and the same sef url are not generated but a new sef url with a postfix like url-dp1, url-dp2? AceSEF is doing is for example.
Wednesday, 15 April 2015 07:15 UTC
wb_weeblr
Hi

No, there is no such option. If you want that, just don't enable sh404SEF for that extension. That's what Joomla SEF is doing: different URLs for same content, and that's what's wrong with it.
In addition, adding a numerical suffix is just a terrible thing to do from a semantic and SEO standpoint. Please have a look at https://weeblr.com/joomla-seo-analytics-security/seo-oriented-urls, especially the link to the MOZ.com article at the bottom.

Rgds
 
Monday, 20 April 2015 07:23 UTC
frank
OK. Thanks for clarification...
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.