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/%D7%90%D7%99%D7%A7%D7%A8%D7%99%D7%AA-%D7%95%D7%91%D7%99%D7%A8%D7%A2%D7%9D
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()'.
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 ✨✨✨