Springboot internationalization multiple pages
This is my first time i am working with springboot and thymeleaf. I got 2 pages on my application. A page with all cars and a config page for a specific car. In my header i got a select box where the language can be changed. This appears on both pages. When i change the language i got a localeResolver that changes the language. I got 2 message.properties files for the 2 languages. If i for example choose english the page is reloading with the english language. Then when i click on a car to go the that specific car config page he still remembers what language to use. But on the config page you can change the language aswell in the header. If i click on for example dutch it is working also. But if i go to the previous page it still has the old url with localhost:9000/locale?lang=en_GB instead of localhost:9000/locale?lang=nl_NL. When i return a view from a controller i want it to return it with the language. This is my webMvcConfig This is my controller that returns the view search.html ...