]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
fixed bug with multiple template roots in TT, fixed bug with frontpage path of /...
[maypole.git] / lib / Maypole.pm
index 5e85cdfe59b45b23e7cf16905b45598a926593ba..858437e39fadc75d1a4ab6ea3543ab5be58f513d 100644 (file)
@@ -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;