aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 5ba69a2..155dfe3 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)