Reply To: Problem with changing language while using language base in SEO urls

Splash Forums PrettyFaces Users Problem with changing language while using language base in SEO urls Reply To: Problem with changing language while using language base in SEO urls

#24332

xmapact
Participant

Hello Christian,

Thank’s for your detailed answer. I tried to follow all your instructions and now I have code that works and shows language base. It also changes locale if URL contains right language code: http://www.example.com/en/…/...
So it is something that I wanted.

Now I’m using ordinary links to change my locales and they work just fine. Example:

<h:link>
    <f:param name="lang" value="en"/>
    EN
</h:link>
<h:link>
    <f:param name="lang" value="ru"/>
    RU
</h:link>

For some reason I have a problem with jsf.js accessibility.
According to Chrome console error I get is: GET http://localhost:8080/My_Project/faces/javax.faces.resource/jsf.js?ln=javax.faces&stage=Development 500 (OK) This GET request returns my custom error page.

My guess is that pretty filter blocks access to this file. (Maybe not 🙂 )
Is there a way to check this?
Thank’s a lot for your answers.