Browse files

Remove trailing slash from breadcrumbs element

  • Loading branch information...
1 parent 95fc044 commit a54e3cf378466b348db0821831cbc637ac7a1225 @autarch autarch committed Aug 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/VegGuide/Controller/DirectToView.pm
View
1 lib/VegGuide/Controller/DirectToView.pm
@@ -37,6 +37,7 @@ sub _breadcrumb_title {
my $path = $uri->path();
$path =~ s{^/$prefix/}{};
$path =~ s/[_-]/ /g;
+ $path =~ s{/$}{};
return ucfirst $path;
}

0 comments on commit a54e3cf

Please sign in to comment.