]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
Default to the frontpage template.
[maypole.git] / lib / Apache / MVC.pm
index 910562cee6043d84eaebe1dfd14ea4b09d35bfd0..4b1a60005750c186b7659cdefa224e01b72afee0 100644 (file)
@@ -101,6 +101,7 @@ sub parse_location {
     $self->{path} = $self->{ar}->uri;
     my $loc = $self->{ar}->location;
     $self->{path} =~ s/^$loc//; # I shouldn't need to do this?
+    $self->{path} ||= "frontpage";
     my @pi = split /\//, $self->{path};
     shift @pi while @pi and !$pi[0];
     $self->{table} = shift @pi;