g1smd:
My issue here originally came from the fact that if I create an article and do not 'bind' it to a menuitem, either directly or indirectly (when using Category blog page), then
Joomla will produce URL's (e.g. from within Related articles module) that consist of the category alias.
Note that in a site of mine, which I refer to here, these kind of articles also resulted in breadcrumbs which displayed Categories (with URL's).
I did not want those Breadcrumbs, with Categories in them, to show up. The reason for this is that spiders like Google will index these URL's. This again will make it possible for a visitor to land on a page which I never wanted to show to my visitors in the first place.
So in my case, I wanted to prevent Joomla to from producing the URL's pointing to a category.
I found out how to get rid of the Category (URL's) in the breadcrumbs... which I have posted here earlier.
What I have not managed to fix, is how to get rid of the Category parts in the URL's produced for these particular articles (the articles not tied to a menuitem or e.g. a Category blog page).
To see this in action you should visit these pages:
a) First an article which is tied to a menuitem or category blog:
First a link to a category blog page:
http://www.monsanto.no/index.php/en/env ... o/gmo-newsNow if you click on one of those articles there: E.g. this one:
http://www.monsanto.no/index.php/en/env ... s-in-indiaThen the URL for the page above look like this:
Code:
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/117-gmo-bt-cotton-linked-to-livestock-deaths-in-india
And the breadcrumbs look like this:
Code:
Home Environment GMO 'GMO news' 'GMO Bt cotton linked to livestock deaths in India?'
Now if you click on an article from the Related articles in the right column (below the tags) which belong to an article which is not tied to a specific menuitem (note: not all articles are of this type though):
Click the article titled: "The Future of Food" ... which takes you here:
http://www.monsanto.no/index.php/en/env ... re-of-foodThis URL look like this:
Code:
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/101-english/environment/gmo-genetically-modfied-organism/gmo-videos/124-the-future-of-food
The breadcrumbs look like this:
(But only because I have made a change in a core joomla file so the Category links in the breadcrumbs do not show.
Code:
Home Environment GMO 'GMO news' 'The Future Of Food'
If you look closely at the URL for the article: The Future of Food .... above then you see it consist of these parts:
http://www.monsanto.no/index.php/en/
environment/
gmo/
gmo-news/
101-english/
environment/
gmo-genetically-modfied-organism/
gmo-videos/
124-the-future-of-food
THE parts from '101-english' and untill 'gmo-videos' are all category aliases.
This are the parts I do not want to show up in the URL for articles. No categories (aliases).
Earlier, before I made the changes to how breadcrumbs where produced, these category aliases would also show up in the breadcrumbs.... all with a link to a page which I did not want to be accessible for the visitor (or the Google spiders etc)...
The reason why I use redirects in my htacess file is only because I found that many of these unwanted URL's had been indexed by e.g. Google.
To give you an example of such an URL indexed by Google then it would be an URL like this:
Code:
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/101-english
Which takes you to this page:
http://www.monsanto.no/index.php/en/env ... 01-englishWhich of course makes no sense at all, because now a norwegian article is displayed in
the english version of the site... Quite messy.
These kinds of URL's would be picked up by the previously generated Category links in the breadcrumbs (which I have removed).
Here is the real URL to the norwegain article by the way, which also show you why that particular URL take the visitor to an unrealistic page ... the article id of the norwegian article is the same as the category id from the english URL:
Code:
http://www.monsanto.no/index.php/no/miljo/gmo/gmo-nyheter/101-hvis-gmo-er-genetisk-forurensing-sa-er-terminator-fro-slutten-pa-livet
Note that the fishy URL example from above is just one of many. Not all show conflicts like the one above where an article from another language version of the site is displayed in a place where it should not. My main point is that I do not want my visitors to get access to these Category URL's at all. But the way Joomla is designed now, may produce URL's that leads the visitor to unwanted landing pages.
Here is a few more examples of unwanted landing URL's (which would appear in the breadcrumbs before I made some core changes to how breadcrumbs are produced, also note that the 4 fishy URL's described here (1 above) and 3 below all comes from the article: The Future of Food:
Code:
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/101-english/environment/gmo-genetically-modfied-organism/gmo-videos
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/101-english/environment/gmo-genetically-modfied-organism
http://www.monsanto.no/index.php/en/environment/gmo/gmo-news/101-english/environment
Now, If you or anybody else, know which file(s) I have to change to get rid of the category aliases in the URL's for articles in general, then that would be great 