Permalink
Browse files

add .html if no extension

  • Loading branch information...
1 parent 0fbc0eb commit 0cfbca2b99d4481133e14fe29855f6b3f443b02b @youpy youpy committed Apr 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 webiblo.pl
View
@@ -88,6 +88,7 @@ sub get_content {
my $fragment = $uri->fragment;
$file =~ s/\..+/.html/ unless $file =~ /\.html$/;
+ $file .= '.html' unless $file =~ /\.html$/; # add .html if no extension
$object->{file} = $file;
$object->{href} = $fragment ? "$file#$fragment" : $file;

0 comments on commit 0cfbca2

Please sign in to comment.