From c78818bd4b8e531f70b2e71b5b2c5c68d6ad6502 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 12 Sep 2025 14:21:53 -0400 Subject: [PATCH] examples: When linking to directories, append a '/' to the URL. This works without it, but generates an extra redirect on the web server to the same a URL with the '/' appended, so we might as well supply it ourselves and remove the extra roundtrip to the server. --- build-scripts/build-web-examples.pl | 4 ++-- examples/template-category.html | 2 +- examples/template-homepage.html | 2 +- examples/template.html | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build-scripts/build-web-examples.pl b/build-scripts/build-web-examples.pl index 74802e9b5a..0bf910af8b 100755 --- a/build-scripts/build-web-examples.pl +++ b/build-scripts/build-web-examples.pl @@ -227,7 +227,7 @@ sub handle_example_dir { my $other_examples_html = ""; @@ -288,7 +288,7 @@ sub generate_example_thumbnail { } return " - +
$example_no_num
diff --git a/examples/template-category.html b/examples/template-category.html index 909b2c6392..f05d7af2ca 100644 --- a/examples/template-category.html +++ b/examples/template-category.html @@ -31,7 +31,7 @@

@project_name@ examples: @category_description@

diff --git a/examples/template-homepage.html b/examples/template-homepage.html index 46951b287d..f1e89fe773 100644 --- a/examples/template-homepage.html +++ b/examples/template-homepage.html @@ -30,7 +30,7 @@

@project_name@ examples

diff --git a/examples/template.html b/examples/template.html index 5af99c2c7a..84568e4187 100644 --- a/examples/template.html +++ b/examples/template.html @@ -202,9 +202,9 @@