aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 801cc2e..90b00fe 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -425,7 +425,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}/")