Skip to content

Commit

Permalink
redirects for chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Duggan committed Jun 4, 2014
1 parent 822c468 commit 929a901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tuba/Chapter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sub show {
return $c->redirect_to( $c->current_route, { chapter_identifier => $chapter->identifier } );
}
}
return $c->render_not_found unless $chapter;
return $c->render_not_found_or_redirect unless $chapter;

$c->stash(object => $chapter);
$c->stash(meta => Chapter->meta);
Expand Down

0 comments on commit 929a901

Please sign in to comment.