use Maypole::Application qw/Redirect AnotherPlugin/; note that this
will only triggers with parameters to import, to preserve backwards
compability.
- - added rewrite_path()
1.7 Sat Jul 17 20:15:26 BST 2004
- Emergency release - we lost the "use Maypole::Constants" from
my $loc = $self->{ar}->location;
no warnings 'uninitialized';
$self->{path} =~ s/^($loc)?\///;
- $self->rewrite_path;
$self->parse_path;
$self->parse_args;
}
my $loc = $self->{cgi}->url( -absolute => 1 );
no warnings 'uninitialized';
$self->{path} =~ s/^($loc)?\///;
- $self->rewrite_path;
$self->parse_path;
$self->parse_args;
}
sub exception { return ERROR }
-sub rewrite_path { }
-
sub parse_path {
my $self = shift;
$self->{path} ||= "frontpage";
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);
}