Multilanguage switch and URL

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Multilanguage switch and URL

Post by sustia »

Hi, maybe it's just a problem of mine.

Following the instructions of DF6IH (http://forum.phpwcms.org/viewtopic.php?p=101091#p101091) - and the latest version of SVN - the multilanguage switch works, but every time that I change the language the URL is changed.

For example, if I open the home page I see this URL

Code: Select all

http://www.mysite.com/index.php
then I choose the spanish version

Code: Select all

http://www.mysite.com/index.php/index.php?&lang=es
If I choose the italian version the URL will be this:

Code: Select all

http://www.mysite.com/index.php/index.php?&lang=es&lang=it
instead of

Code: Select all

http://www.mysite.com/index.php/index.php?&lang=it
Someone kwow because this happens?
Campeones del mundo!
Vegetables!
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Re: Multilanguage switch and URL

Post by Peekay »

I have just set up a test for the multilanguage feature in 1.3.5 and I agree it works very well. :D However, like Sustia, I also noticed that the 'lang' value changes are appended to the page address continuously. It doesn't seem to affect operation, but I guess it might cause problems if someone bookmarks the page and they have changed language more than once?

On the topic of the page address, how does a multilanguage site perform in respect to SEO?

Also, can something be set so that (for example) a visitor from Germany would see the German version of a page first?
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Re: Multilanguage switch and URL

Post by Peekay »

Peekay wrote:I guess it might cause problems if someone bookmarks the page and they have changed language more than once?
On further testing, this only appears to happen if you change language on the same page several times. I just tried creating a bookmark after doing that and the page is still found even with several 'lang' additions. The last one in the string is respected.
Post Reply