What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Change Part of Slug or URL string then Reload

samp12

New member
I use squarespace and the lack of translation is shocking.But I did find a nice tutorial online, to create 2 nice flag buttons that take me to the home page of appropriate language and they also hide the menu items that are not in the right language.
I want to make this better but I am unsure how to do it as I do not have expert experience.
I would like to: Page is in english, I click on 2nd laguage, it would get and change the slug instead of : en/home/ it would convert it to hu/home and it would then load the new page, so it would do this for every page, and every page has the same slug .../en/page2 and a seccond .../hu/page2. Right now when I click on the 2nd language it takes me only to the language homepage.
Or maybe easier to edit the URL instead, how to get the .../en/... part and modify it to .../hu/...
CODE SCREENSHOT
Is this possible?
Many thanks.
 
Back
Top