I remember when C# was first released and some wag pointed out that MS had shot themselves in the foot (again) by using a name so unfriendly for search engines.
As you really should be using slugs in URLs, I guess you could always manually sluggify those tags as "c-plus-plus" and "c-sharp". It's not the sort of thing one could easily plan ahead for, though (as, eg. I modified SluggableBehavior to convert "&" to "and"). On Sun, Apr 19, 2009 at 12:02 PM, christianstrang <[email protected]> wrote: > > Hello :) > I use tags in my current projects and they are working fine, but only > if they contain these characters [0-9a-z] > But I want to use tags like this as well: c#, c++ etc. > > my first idea was to "rawurlencode" the incoming tag, like: > rawurlencode('c#) => c%23 > and save this tag in the database. Works just fine but if I use the > url: http://domain.com/tags/c%23 > everything after "c" is cut off and so no data is fetched from the DB. > > Does anyone know how to solve this or another way to implement this? > > My route looks like this: > > Router::connect('/tags/(.*)', array('controller' => 'tags', 'action' > => 'view')); > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
