Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $self->hook(before_dispatch => sub {
- my $self = shift;
- push @{$self->req->url->base->path->parts},
- shift @{$self->req->url->path->parts};
- $self->req->url->path( '/' ) if ( $self->req->url->path eq '//' );
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement