mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
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.
This commit is contained in:
parent
614ae1b115
commit
c78818bd4b
4 changed files with 7 additions and 7 deletions
|
|
@ -227,7 +227,7 @@ sub handle_example_dir {
|
|||
|
||||
my $other_examples_html = "<ul>";
|
||||
foreach my $example (get_examples_for_category($category)) {
|
||||
$other_examples_html .= "<li><a href='/$project/$category/$example'>$category/$example</a></li>";
|
||||
$other_examples_html .= "<li><a href='/$project/$category/$example/'>$category/$example</a></li>";
|
||||
}
|
||||
$other_examples_html .= "</ul>";
|
||||
|
||||
|
|
@ -288,7 +288,7 @@ sub generate_example_thumbnail {
|
|||
}
|
||||
|
||||
return "
|
||||
<a href='/$project/$category/$example'>
|
||||
<a href='/$project/$category/$example/'>
|
||||
<div>
|
||||
<img src='$example_image_url' $example_mouseover_html />
|
||||
<div>$example_no_num</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue