diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -365,7 +365,11 @@ impl Router { let fixed_path = if self.fix_path { self .routes - .fix_path(url.path()) + .fix_path(if url.path().is_empty() { + "/" + } else { + url.path() + }) .unwrap_or_else(|| url.path().to_string()) } else { url.path().to_string() |