You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2011/09/23 18:40:26 UTC

[jira] [Resolved] (TAP5-972) Setting SymbolConstants.ENCODE_LOCALE_INTO_PATH to false causes set PersistentLocale to be ignored

     [ https://issues.apache.org/jira/browse/TAP5-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship resolved TAP5-972.
---------------------------------------

    Resolution: Won't Fix

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira