my $tag = $c->model('tags')->select_tagnames(tagname => $filter);
if ($tag) {
$c->res->code(301);
- $c->redirect_to("/tags/$filter");
+ $c->redirect_to("/tag/$filter");
return;
}
}
my $tag = $c->model('tags')->select_tagnames(tagname => $filter);
if ($tag) {
$c->res->code(301);
- $c->redirect_to("/tags/$filter");
+ $c->redirect_to("/tag/$filter");
return;
}
}
if ($section) {
if ($section eq 'mac') {
$c->res->code(301);
- $c->redirect_to("/tags/apple");
+ $c->redirect_to("/tag/apple");
return;
}
if (any { $section eq $_ } @sections) {
$c->res->code(301);
- $c->redirect_to("/tags/$section");
+ $c->redirect_to("/tag/$section");
return;
}
$c->render('Not found', status => '404');