Whan you set a page views to accept the taxonomy term as an argument, and the term is more then one word, it adds plusses where the spaces were.

My category pages are rather import parts of my site, so I would like them to be SEO friendly, and the plus sign is not properly read by google. It should be a -. Any way I can change this?

Thanx,
JR

Comments

rgraves’s picture

While it probably won't work for categories automatically generated by a category view, I was able to use URL aliases for my case to make /subjects/american+literature to work under /subjects/americanliterature. Since I'm not automatically generating a category list, any URL I have to this page can be manually put in without the plus sign.

Rob

SeanBannister’s picture

Yeah I'm looking for the same solution but I don't want to do it manually, I'll post if I find anything.

SeanBannister’s picture

I think this may have something to do with it http://drupal.org/node/191116

SeanBannister’s picture

For future reference, if anyone wants to know how to solve this problem read this thread http://drupal.org/node/140478
Make sure you read the entire thread as there is a strange bug.

buzink’s picture

I agree with peach. I solved the problem by putting the following code in the Argument Handling Code section of the view:

$args[0] = str_replace('-', ' ',$args[0]);

This will take the any - out of the argument part of the url and replace it with a space. This complements the default behavior of replacing any + with a space. This default behavior will still work (you can use both - and + urls).

---
http://robertbuzink.com