Put the lang in front of url (WIP)

This commit is contained in:
Greg Burri 2025-03-26 02:08:20 +01:00
parent 418d31a127
commit b39cb1c067
4 changed files with 8 additions and 6 deletions

View file

@ -335,7 +335,7 @@ fn url_rewriting(mut req: Request) -> Request {
if let Some(lang) = parts.next() {
let available_codes = translation::available_codes();
if available_codes.contains(&lang) {
let mut rest: String = String::from("");
let mut rest = String::from("");
for part in parts {
rest.push('/');
rest.push_str(part);