Revert "Change to visit"
[catagits/Gitalist.git] / lib / Gitalist / View / Default.pm
index 443704b..b1d4840 100644 (file)
@@ -12,13 +12,16 @@ __PACKAGE__->config(
   TEMPLATE_EXTENSION => '.tt2',
   WRAPPER            => 'wrapper.tt2',
   subinclude_plugin => 'SubRequest',
+  render_die => 1,
 );
 
 use Template::Stash;
 
 # define list method to flatten arrayrefs
 $Template::Stash::LIST_OPS->{ to_path } = sub {
-    return join('%2F', shift->flatten, @_);
+    my $path = join('%2F', shift->flatten, @_);
+    $path =~ s{/}{%2F}g;
+    return $path;
 };
 
 __PACKAGE__->meta->make_immutable(inline_constructor => 0);