Thiago H. de Paula Figueiredo wrote: > >> Do you think it is necessary and can be done to have intra-page links - >> and probably those for component events as well - go to /url instead of >> /en/url? > > You can disable the locale prefix by setting the > SymbolConstants.ENCODE_LOCALE_INTO_PATH symbol to false. >
Thiago, I tried that but now I cannot switch languages any more. By switching I mean through a component that sets the PersistentLocale. Recognition of the browser language works fine and the content appears in the right language. Before setting SymbolConstants.ENCODE_LOCALE_INTO_PATH to false I had the following behavior: - browser language gets detected and content appears in the right language using URLs without encoding of the locale in the path - when setting PersistentLocale the locale encoding in the path happened After setting SymbolConstants.ENCODE_LOCALE_INTO_PATH to false the locale doesn't get encoded in the path anymore and apparently that is some kind of a requirement for the PersistentLocale thing to work. Might that be a bug? I've created TAP5-972. Stephan ----- -- http://www.caimito.net - Caimito One Team - Agile Collaboration and Planning tool http://www.stephan-schwab.com - Personal blog http://code.google.com/p/tapestry-sesame - Authentication extension for Tapestry 5 -- View this message in context: http://old.nabble.com/SEO-and-duplicate-content-due-to-language-prefix-tp27019442p27026684.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org