Problem with site: wrong links for non default language

When I made the site, I added two languages ​​there. After downloading, English works fine because it is the main language. But when I click the “Russian” button, it takes me to the wrong link, /ru/ is not where it should be. After changing the browser line, I click on the buttons, and of course the redirect there is also incorrect

Links:

GitHub - anyatomik/astra_learn - site repo

Astra-learn - site

you have multiple pages, and muktiple switchers (after heading and bottom of the page)

I clicked some ru and git pages displayed.


Update:

your menu entries are defined with a leading slash and that won’t work, because the theme uses the absLangUrl which in that case creates links rooted at your domain (not your sub folder astra_learn).
you want

  • url = "downloads/" (not “/downloads/”) (same for the others.
  • use empty url for the Homepage url = ""

if that does not solve some of the your issues, please eleborate a little which page which button has a problem

housekeeping:
maybe you want to remove the zh pages and config entries - just bloats the sources. folders and config without noise will increase readability and maintainabiliy

p.s. updated your post title - redirects are a different thing

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.