failure for android mobile phone

ZhongkaiChen
0
ZhongkaiChen
commented a month ago

Version

v6.3.0

Reproduction link

https://codesandbox.io/s/codesandbox-nuxt-vovsx

Steps to reproduce

Just follow the basic introduction.

What is expected ?

Working on an Android mobile phone.

What is actually happening?

For android phone, when I open the webpage https://vovsx.sse.codesandbox.io/
I cannot switch languages.

Additional comments?

This issue is quite important since there are so many android phones out there.

bug
0
ZhongkaiChen
0
ZhongkaiChen
commented a month ago

Hi,
I have tried to work on an android phone.
I also used "switchLocalePath('en')" with no luck.
The URL changed from "/about" to "/cn/about" for instance.
Nevertheless, the language didn't change.
If I reload "/cn/about", the language changed to Chinese.
If I stay in "/cn/about", and click nuxt-link to another page,
the url will be something like "/project" with no "/cn".

0
ZhongkaiChen
0
ZhongkaiChen
commented a month ago

I am not sure where the problem came from, I used different android phones and all of them have similar issues.

0
rchl
578
rchl
commented a month ago

It works for me. There must be something wrong going on on your end. Maybe try debugging your phone through USB and check for any errors in the console.

0
ZhongkaiChen
0
ZhongkaiChen
commented a month ago

The problem is partially solved by this.$root.$i18n.locale = lang and then this.$router.push(this.switchLocalePath(lang));
<nuxt-link class="navbar-item" :to="switchLocalePath('en')">
Doesn't work properly in my case.

0
ZhongkaiChen
0
ZhongkaiChen
commented a month ago

nuxt-link doesn't work properly with ":to="switchLocalePath('en')"
For me, it's enough, but I hope someone can look into the problem and fix it.

0
rchl
578
rchl
commented a month ago

The URL changed from "/about" to "/cn/about" for instance.
the url will be something like "/project" with no "/cn".

Your reproduction doesn't even include cn locale. Nor a route called project. Sorry, I can't help you there. It could be that your browser is doing something that it shouldn't or you are getting your data modified in transit (since you seem to be Chinese, I wouldn't rule that out given what's happening in China).

I would suggest you try testing in:

  • "private" mode
  • different browser
  • clear out browser cache
  • with VPN
0
Informations
Bug Report โ€ข Open
#c343 - Created a month ago