2009/10/12 Octavian Râşniţă <orasn...@gmail.com> > Hi, > > Is there a recommendation for storing the language ID in the URL in order > to be as easy to get it from there? > > I want to have unique links for each URL, so I can't just put it in the > cookies. Using ?lang=EN seems to be the easiest way, although it doesn't > look nice. >
My other post about passing around query parameters is related. Happens that one of the parameters is a lang setting. I've always preferred using a path prefix instead of a query parameter. For one things it make relative urls work. Another is that, IIRC, there were proxies that would not cache content with query parameters. I'm not sure if that's a real concern any more -- or if there's any other reasons to avod the query parameter approach. Another parameter that might be passed, in my case, is a session id. I'm not a fan of that, but apparently there's some cases where it's needed (site in an iframe??). At one time I also put that into a path prefix. > Putting it as the first element in the path info looks nice, but I don't > know how to get it from there in a single controller/action and not in every > action separately. > The wiki article Larry posted is very close to what I do. -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/