Ignore:
Timestamp:
11/30/10 04:47:31 (14 years ago)
Author:
nanardon
Message:

complete /distrib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Root.pm

    r50 r54  
    2626    my ( $self, $c ) = @_; 
    2727 
    28     if ($c->req->path =~ m:[^/]+\/$:) { 
     28    if ($c->req->path =~ m:[^/]+\/+$:) { 
    2929        my $path = $c->req->path; 
    3030        $path =~ s:/*$::; 
     
    3333    } 
    3434 
    35     if (!$c->stash->{path}) { 
     35    if (!$c->stash->{sitepath}) { 
    3636        my @path; 
    37         my @reqpath = grep { $_ } split('/', $c->req->path); 
     37        my @reqpath = split('/', $c->req->path); 
    3838        foreach (@reqpath) { 
    3939            push(@path, $_); 
    40             push(@{ $c->stash->{sitepath} }, { path => $c->uri_for('/', @path), name => $_ }); 
     40            push(@{ $c->stash->{sitepath} }, { path => $c->uri_for('/', @path), 
     41                    name => $_ || '*' }); 
    4142        } 
    4243    } 
Note: See TracChangeset for help on using the changeset viewer.