sub parse_location {
my $self = shift;
- my $url = URI->new(shift @ARGV);
- my $root = URI->new($self->config->uri_base)->path;
+ my $url = URI->new( shift @ARGV );
+ my $root = URI->new( $self->config->uri_base )->path;
$self->{path} = $url->path;
$self->{path} =~ s/^$root//i if $root;
+ $self->rewrite_path;
$self->parse_path;
$self->parse_args($url);
}