K2 Items are available at multiple urls, and indexing ...

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
mcall
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Nov 21, 2013 6:04 pm

K2 Items are available at multiple urls, and indexing ...

Post by mcall » Tue Mar 10, 2015 10:39 pm

There must be something fundamental that i don't understand about Joomla or K2. My k2 items have the url i would like:
http://www.utahsymphony.org/14-15-seaso ... ven-wagner

but you are able to change '14-15-season' to any of my other menu item alias, and it inserts that k2 item into the content of that new location:

http://www.utahsymphony.org/plan-your-v ... ven-wagner
http://www.utahsymphony.org/support/adv ... ven-wagner

which is especially bad when going to a section of the site that uses a different template:

http://www.utahsymphony.org/mighty5/987 ... ven-wagner

Some of these urls, such as the one above ^ are showing up in google search results! Bad news. I would love any help that anyone can give me on this issue. :-[

Thank you so very much in advance!!!

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: K2 Items are available at multiple urls, and indexing ..

Post by itoctopus » Wed Mar 11, 2015 3:41 am

This is actually a serious bug in K2's router, which ignores the category as long as it finds the id of the article in the URL. I will tweet this to K2's team - hopefully this can get fixed in the next version.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

mcall
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Nov 21, 2013 6:04 pm

Re: K2 Items are available at multiple urls, and indexing ..

Post by mcall » Wed Mar 11, 2015 4:59 pm

itoctopus wrote:This is actually a serious bug in K2's router, which ignores the category as long as it finds the id of the article in the URL. I will tweet this to K2's team - hopefully this can get fixed in the next version.
Oh wow. That's surprising. Thanks for the info. Hopefully this will be fixed soon.

Thanks again!

fotisevangelou
Joomla! Ace
Joomla! Ace
Posts: 1423
Joined: Sun Jan 22, 2006 6:27 pm
Contact:

Re: K2 Items are available at multiple urls, and indexing ..

Post by fotisevangelou » Wed Mar 11, 2015 6:03 pm

Well, the best place to discuss this is the K2 forum for one: http://www.joomlaworks.net/forum/k2

As to what you say, I don't consider this a bug. I'm just gonna add a comment, but if you wanna continue this discussion, please head over to the K2 Forum. If there's a better way to do this (in terms of router logic), I don't have any objection to update the URL router.

Now, what you're doing is visiting fake URLs right? Cause there's no way to visit http://www.utahsymphony.org/support/adv ... ven-wagner from your menu or modules, right?

The same goes with core Joomla articles. And you don't even need to specify a different existing menu alias. You can place whatever you want before the article id. And whatever you want after it:

This is the live URL http://www.joomla.org/announcements/rel ... -here.html but I can easily make it http://www.joomla.org/announcements/WOW ... -here.html and still see the same content.

Now let's have some fun with the article alias: http://www.joomla.org/announcements/WOW ... WOWOW.html

So, it's kinda how Joomla's router logic works in general. When a URL is processed in K2, we search patterns, starting from the item, moving on to the category and then tags, users etc.

K2 may generate double URLs in some cases, especially with tags and categories that don't belong to some menu item. But again this is a side-effect of how Joomla works. When you're inside some K2 item, all tag links within this item will have the item's URL path in front of it. But, again, this is normal when you build a router the Joomla way. And frankly I'm not aware of any other way to fix this.

But at least in K2 you can easily solve this problem by creating a new menu in Joomla that doesn't get rendered in any module and in there creating a single menu item to all K2 categories (just don't select any category and K2 will assume you want them all in the menu settings). Give it a nice menu alias (e.g. "content" or "site") and all double tag URLs (for example) get normalized to domain.tld/content/tag/x or domain.tld/content/tag/y. In the upcoming K2 v3 we actually have a better mechanism for this and you can define prefix paths for separate content entities in K2 (tags, users etc).

Now, the reason why Google scans this URLs is probably from your own browsing history. If you're logged into your Google account and browsing the web and got Google Analytics on your site too, know that everything gets reported back "home". Otherwise Google simply cannot crawl URLs that don't exist. In your case, you're creating the URLs by navigating to them.

For more, let's continue this over at the K2 forum.
Fotis Evangelou / https://www.joomlaworks.net

zorroson
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Thu Sep 07, 2006 6:19 pm

Re: K2 Items are available at multiple urls, and indexing ..

Post by zorroson » Wed May 20, 2015 5:32 pm

Just out of curiosity - did this talk continue at http://www.joomlaworks.net/forum/k2?

I can't seem to find a post over there about the subject, and as I have the same "issue" I would like to read more, if there was a followup over there :)

Cheers ;)


Locked

Return to “General Questions/New to Joomla! 2.5”