X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=858437e39fadc75d1a4ab6ea3543ab5be58f513d;hb=8e96ebeddb37ef30d2e215f935e136a9170576cd;hp=5e85cdfe59b45b23e7cf16905b45598a926593ba;hpb=55afe5b445e78a93fd7e501c49b53b654722c7c3;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 5e85cdf..858437e 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -985,7 +985,11 @@ sub parse_path # conditionally, broke lots of tests, hence this: $self->$_(undef) for qw/action table args/; $self->preprocess_path; - $self->path || $self->path('frontpage'); + + # use frontpage template for frontpage + unless ($self->path && $self->path ne '/') { + $self->path('frontpage'); + } my @pi = grep {length} split '/', $self->path;