You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Stephan Schwab (JIRA)" <ji...@apache.org> on 2010/01/05 19:34:54 UTC
[jira] Created: (TAP5-972) Setting
SymbolConstants.ENCODE_LOCALE_INTO_PATH to false causes set
PersistentLocale to be ignored
Setting SymbolConstants.ENCODE_LOCALE_INTO_PATH to false causes set PersistentLocale to be ignored
--------------------------------------------------------------------------------------------------
Key: TAP5-972
URL: https://issues.apache.org/jira/browse/TAP5-972
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.1.0.5
Reporter: Stephan Schwab
Thiago H. de Paula Figueiredo said in http://old.nabble.com/SEO-and-duplicate-content-due-to-language-prefix-ts27019442.html
>> 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.
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.