Put the lang in front of url (WIP)
This commit is contained in:
parent
418d31a127
commit
b39cb1c067
4 changed files with 8 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue