X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/9e77d528b81a90babfcc565609030fa01712b4a1..98a8228ac6651509dfe58a871594b5cc22cee553:/sc.plp
diff --git a/sc.plp b/sc.plp
index b3c27fc..e784cbd 100644
--- a/sc.plp
+++ b/sc.plp
@@ -29,16 +29,16 @@ my $requestver = $scvers{$Request ||= 'index'}
or Html(), Abort("Requested version $Request not available", '404 request not found');
if (ref $requestver ne 'HASH') {
- $header{Location} = $requestver;
+ $header{Location} = "/sc/$requestver";
Abort("Canonical URL for $Request is at $requestver", '302 subpage alias');
}
my %scver = %{$requestver};
-my $datafile = "sc-units-$Request.inc.pl";
+my $datafile = "sc-units-$Request";
Html({
title => "$scver{title} unit cheat sheet",
- version => '1.2',
+ version => '1.4',
description => [
"Reference of $scver{game} unit properties,"
. " comparing various statistics of all the units in $scver{name}"
@@ -54,13 +54,12 @@ Html({
],
stylesheet => [qw( light dark )],
raw => '',
- data => [$datafile],
+ data => ["$datafile.inc.pl"],
});
say "