Advertisement
Guest User

Untitled

a guest
Dec 26th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $self->hook(before_dispatch => sub {
  2. my $self = shift;
  3. push @{$self->req->url->base->path->parts},
  4. shift @{$self->req->url->path->parts};
  5. $self->req->url->path( '/' ) if ( $self->req->url->path eq '//' );
  6. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement