Another router issue[Solved]

Hi,

Writing a router for different RTL / LTR languages pages. in case the content is missing, should redirect to a specific message page (that’s the reason for using a router instead of dynamic system).

In the following link, When changing the language to English, a The user is redirected to correct router page, with the matching content.

But the url stays in Hebrew, except of the multilingual /en part.
https://drorgoldbaum.wixsite.com/akevotcollections/en/collections/heb/איקרית-ובירעם

All printed logs are perfectly ok:

Redirection is done to the right page, showing the right data.
The name of the router-page is the correct page, But the url is wrong:


When clicking Enter on the url line, The user will get an error.
The router function is: _Router.
The redirection is done with: ‘ok()’.

Thanks a lot,

Dafna :exploding_head:

Looking at this, I don’t get an error when clicking “Enter” on the hebrew version of the url (on english page)

The only time I get a router error is when clicking the middle language option.

It is still curious that your url isn’t updating, poking around to see if I can figure it out but fwiw I am getting no errors as an english visitor with the hebrew url

Thanks a lot Amanda :sparkles:
Does the url match tha language in the page name tab? :pray:

Somebody???

I think that I can’t winn the Multilingual router, but I found a solution:

  • Removed the Multilingual.
  • Wrote the language menu by code, & saved it in a session variable.
    Router working now :sparkles::sparkles::sparkles: