fix: content handler and redirects
This commit is contained in:
parent
c776703568
commit
fb434a8b3a
26 changed files with 74 additions and 542 deletions
|
|
@ -348,10 +348,10 @@ sub www_view {
|
|||
return $self->session->privilege->noAccess();
|
||||
} elsif ($self->session->var->get("adminOn") && $self->get("state") =~ /^trash/) { # show em trash
|
||||
$self->session->http->setRedirect($self->getUrl("func=manageTrash"));
|
||||
return "";
|
||||
return undef;
|
||||
} elsif ($self->session->var->get("adminOn") && $self->get("state") =~ /^clipboard/) { # show em clipboard
|
||||
$self->session->http->setRedirect($self->getUrl("func=manageClipboard"));
|
||||
return "";
|
||||
return undef;
|
||||
} else { # tell em it doesn't exist anymore
|
||||
$self->session->http->setStatus("410");
|
||||
return WebGUI::Asset->getNotFound($self->session)->www_view;
|
||||
|
|
|
|||
|
|
@ -267,10 +267,11 @@ sub www_click {
|
|||
my $listing = $self->session->db->getRow("Matrix_listing","listingId",$self->session->form->process("listingId"));
|
||||
if ($self->session->form->process("m")) {
|
||||
$self->session->http->setRedirect($listing->{manufacturerUrl});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$self->session->http->setRedirect($listing->{productUrl});
|
||||
}
|
||||
return "";
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ sub view {
|
|||
sub www_goBackToPage {
|
||||
my $self = shift;
|
||||
$self->session->http->setRedirect($self->session->form->process("returnUrl")) if ($self->session->form->process("returnUrl"));
|
||||
return "";
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -509,6 +509,7 @@ sub view {
|
|||
# webgui flow. This feature currently requires a patched WebGUI.pm file.
|
||||
if ($self->session->form->process('redirectURL')) {
|
||||
$self->session->http->setRedirect($self->session->form->process('redirectURL'));
|
||||
return undef;
|
||||
}
|
||||
|
||||
$var{'results'} = \@result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue