Skip to content

Commit 8bf107e

Browse files
committed
Force a / on the end of base
1 parent 7bf9ebd commit 8bf107e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

bin/mksite

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use App::CPANModuleSite;
1212
my $args = { distribution => $ARGV[0] };
1313
if (@ARGV > 1) {
1414
$args->{base} = $ARGV[1];
15+
$args->{base} .= '/' if $args->{base} !~ m|/$|;
1516
}
1617

1718
my $app = App::CPANModuleSite->new($args);

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!doctype html>
33
<html lang="en">
44
<head>
5-
<base href="/app-cpanmodulesite">
5+
<base href="/app-cpanmodulesite/">
66
<!-- Required meta tags -->
77
<meta charset="utf-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1">

docs/lib/App/CPANModuleSite.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!doctype html>
33
<html lang="en">
44
<head>
5-
<base href="/app-cpanmodulesite">
5+
<base href="/app-cpanmodulesite/">
66
<!-- Required meta tags -->
77
<meta charset="utf-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)