X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FBase.pm;h=668b2c4430fa4b061d0343cf237dfd203a45ae2f;hb=4ab33d12a514e0531e16f3d2812b15258de258c5;hp=8229d2193387f1c7b8c0f9862d882f35d75f05ba;hpb=5c9dc9134cf6a75aa65f91dc5eb02c4a294d21b8;p=maypole.git diff --git a/lib/Maypole/View/Base.pm b/lib/Maypole/View/Base.pm index 8229d21..668b2c4 100644 --- a/lib/Maypole/View/Base.pm +++ b/lib/Maypole/View/Base.pm @@ -21,10 +21,12 @@ sub paths { sub vars { my ($self, $r) = @_; my $class = $r->model_class; + my $base = $r->{config}->{uri_base}; + $base =~ s/\/+$//; my %args = ( request => $r, objects => $r->objects, - base => $r->config->{uri_base}, + base => $base, config => $r->config # ... ) ;