Keyword

Info: K2 2.6.5 removes important SEO options

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109754 by Matt
Fotis introduced in the K2 2.6.4 news these following options:

"Default parent menu for user pages (optional)"
"Default parent menu for tag listings (optional)"

These options kill the duplicated URL issue with tags and user pages. But for some reason, he removed these options in K2 2.6.5, which means you have yet again duplicated URLs with tags and author pages. The new SEF advance options can't do nothing about this.

At this point, there hasn't been a news to K2 2.6.5 posted, so lets hope that Fotis can explain his decision to remove these options soon.

In the meantime, simply don't update to K2 2.6.5.

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

More
12 years 3 months ago #109755 by xaoc
Are they back in 2.6.6 ?

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

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109756 by Matt
There is no K2 2.6.6. The latest version is 2.6.5.

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

More
12 years 3 months ago #109757 by xaoc
they was deleted only from config.xml
variables are still in the plugins/system/k2.php

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

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109758 by Matt
You can put these back in the config.xml, but they won't work anymore. I checked this.

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

More
12 years 3 months ago #109759 by xaoc
did you uncomment this line:
//define('K2_USERS_ITEMID', $componentParams->get('defaultUsersItemid'));
in plugins/system/k2.php?

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

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109760 by Matt
No I didn't, but thanks for the heads-up.

// Define the default Itemid for users and tags. Defined here instead of the K2HelperRoute for performance reasons.
// UPDATE : Removed in K2 2.6.5. All K2 links without Itemid now use the anyK2Link defined in the router helper.
//define('K2_USERS_ITEMID', $componentParams->get('defaultUsersItemid'))
//define('K2_TAGS_ITEMID', $componentParams->get('defaultTagsItemid'));

So that explains it then. I will do some testing now and report my results shortly.

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

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109761 by Matt
As I thought, you still have duplicated URLs with tag and user pages when those lines in the k2.php are commented.

Removed in K2 2.6.5. All K2 links without Itemid now use the anyK2Link defined in the router helper.

The advanced SEF options ain't do nothing about this. I don't know what this "anyK2Link" is supposed to mean, but it obviously isn't working. Tags and user pages links all start with "component/k2" if not assigned to a menu, resulting in multiple duplicated URLs accross your site.

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

More
12 years 3 months ago - 12 years 3 months ago #109762 by xaoc
comment them out and write a new issue about anyK2Link: duplicated urls are back :(:(:( :angry: :angry: :angry: Its in route.php
Log in  or Create an account to join the conversation.

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109763 by Matt
I doubt that Fotis or lefteris would pay much attention to it, seeing the enormous amount of unaddressed issues in the SVN .
I start to think that they don't take their own project serious.

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

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 3 months ago #109764 by Matt
So Fotis now has posted a K2 2.6.5 news and I don't have facebook, yahoo, aol and hotmail to comment on the article (he disabled the default K2 comment system for some reason, but that's ok, because he wasn't approving comments anyway) I'm going to ask the question here.

In the source code of the system/k2.php file I found this:

/ Define the default Itemid for users and tags. Defined here instead of the K2HelperRoute for performance reasons.
// UPDATE : Removed in K2 2.6.5. All K2 links without Itemid now use the anyK2Link defined in the router helper.
//define('K2_USERS_ITEMID', $componentParams->get('defaultUsersItemid'));
//define('K2_TAGS_ITEMID', $componentParams->get('defaultTagsItemid'));


I have bolded the important part, performance reasons. Can you elaborate a bit more? Does enabling the duplicated tag/user pages options in K2 2.6.4 result in performance issues? How many queries are executed compared to the new method in K2 2.6.5?

My next question is also releated to performance issues. In K2 2.6.4 the description for the advanced SEF settings is as follows:

Enabling this option will modify all K2 URLs making them more SEO friendly. However this option will add a significant performance hit for websites with more than a few hundred K2 items in them. Use with caution. This option is disabled by default.


This sounds as if the new URLs are stored in the database just like sh404 sef URLs. Is this the case? Can you elaborate more?

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