# archive page
$r->get('/story/:year/:month/:day/')->to('archive#story');
$r->get('/story/:year/:month/')->to('archive#story');
+
+ # redirect rule for /stroy/<tags or topics>/
+ $r->get('/story/:tag/' => [tag => qr{[^/ ]+}] => sub {
+ my $c = shift;
+ my $tag = $c->stash('tag');
+ $c->res->code(301);
+ $c->redirect_to("/tag/$tag/story/");
+ });
$r->get('/story/')->to('archive#story');
$r->get('/journal/:year/:month/:day/')->to('archive#journal');
$r->get('/faq/')->to('faq#faq');
# topics
- $r->get('/topics.pl')->to(cb => sub {my $c = shift; $c->res->code(301); $c->redirect_to('/topics/'); });
+ $r->get('/topics.pl' => sub {my $c = shift; $c->res->code(301); $c->redirect_to('/topics/');});
$r->get('/topics')->to('topics#topics');
# authors
[%- FOREACH topic = topics %]
[%- IF topic.searchable == "yes" %]
<div class="topic-item">
- <a href="/stories/[% topic.keyword %]/">
+ <a href="/tag/[% topic.keyword %]/story/">
[%- IF topic.image %]
<img src="[% Site.topic_icon_base_url %]/[% topic.image %]" />
[%- ELSE %]