diff options
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 7da7392..60d63f7 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -411,7 +411,7 @@ fn archive_button( /// Ensure that there's always a trailing slash behind the `link`. fn make_link_with_trailing_slash(link: &str) -> String { - if link.ends_with('/') { + if link.is_empty() || link.ends_with('/') { link.to_string() } else { format!("{link}/") |