Foros de discusión

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

Timo Brandes, modificado hace 8 años.

Locales prepended to URLs although locale.prepend.friendly.url.style is 0

New Member Mensajes: 5 Fecha de incorporación: 28/01/15 Mensajes recientes
Hi,

I'm having the problem that the locale is prepended automatically to every URL. I have the property locale.prepend.friendly.url.style set to 0 in portal-ext.properties and verified it inside the control panel. Seems to make no difference. I just updated from Liferay 6.2 GA3 to GA5, but its still the same (although now its not only "de/", but "de_DE/" thats added...).

Any ideas what I could do?

Thanks.
thumbnail
Juan Gonzalez, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Timo,

I think you are reproducing this bug: https://issues.liferay.com/browse/LPS-42001.

Try to patch your source code using the github commits from that LPS and comment the results...
Timo Brandes, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

New Member Mensajes: 5 Fecha de incorporación: 28/01/15 Mensajes recientes
Hi Juan,

thanks for your answer. I did not tried to patch it, because I changed the context path from ROOT to /liferay and the problem is gone emoticon
David Berruezo, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

New Member Mensajes: 7 Fecha de incorporación: 22/04/14 Mensajes recientes
Hi Timo!

I have the same issue with locales. I tried to patch it but it didn't work. Can you explain how have you resolved this issue?

Thanks!
David Berruezo, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

New Member Mensajes: 7 Fecha de incorporación: 22/04/14 Mensajes recientes
Hello!

I found this issue: https://issues.liferay.com/browse/LPS-60313

It's exactly what happens to me. This issue is solved in EE portal, that's great! But, any ideas how to solve this in CE.

They don't show which classes or functions have been fixed.. emoticon

Thanks!
thumbnail
Juan Gonzalez, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
David Berruezo:
Hello!

I found this issue: https://issues.liferay.com/browse/LPS-60313

It's exactly what happens to me. This issue is solved in EE portal, that's great! But, any ideas how to solve this in CE.

They don't show which classes or functions have been fixed.. emoticon

Thanks!


Hi David, as this error is 6.2.x only regression, I am going to help you this time.

i18Path was calculated wrongly here:

https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portal/servlet/I18nServlet.java#L176

as i18LanguageId had been changed with the country code, but i18Path shouldn't have that country code change. To fix it, just move that code line to the line before:
if (Validator.isNull(locale.getCountry())) {


recompile and recheck.
David Berruezo, modificado hace 8 años.

RE: Locales prepended to URLs although locale.prepend.friendly.url.style is

New Member Mensajes: 7 Fecha de incorporación: 22/04/14 Mensajes recientes
Done! It works! emoticon

Thank you so much!