Skip to content

Commit

Permalink
Skip adding current page to the URL for Wiki menu entries without act…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
racke committed Sep 9, 2010
1 parent e7147eb commit c127e4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Vend/Wiki.pm
Expand Up @@ -430,15 +430,15 @@ sub menu {
}

$label = $menu_ref->{label} || $_;

if ($menu_ref->{action}) {
$form = {action => $menu_ref->{action}};
}

$url = $self->{url} || $self->{name};

if ($menu_ref->{action}) {
$form = {action => $menu_ref->{action}};

if ($self->{page}) {
$url .= "/$self->{page}";
if ($self->{page}) {
$url .= "/$self->{page}";
}
}

push(@entries, {name => $label, url => $url, form => $form,
Expand Down

0 comments on commit c127e4b

Please sign in to comment.