Skip to content

Commit 5cd9078

Browse files
committed
Fix router lang matched stripped path
1 parent bf37949 commit 5cd9078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emmett_core/routing/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _split_lang(router, path):
110110
if not next_sep or next_sep == "/":
111111
lang, new_path = clean_path[:2], clean_path[2:]
112112
if lang != default and lang in router.app._languages_set:
113-
return new_path, lang
113+
return "/" + new_path, lang
114114
return path, default
115115

116116
@classmethod

0 commit comments

Comments
 (0)