summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-18 13:44:50 +0100
committerYorhel <git@yorhel.nl>2008-12-18 13:44:50 +0100
commitf574d1678ff813ffd664bbf9b648fe19737142a1 (patch)
tree29effeaa37300c4ca55b721443691cef5629b309
parenta9af821aa32f1e602d64fb8c456d6525b425edff (diff)
Added redirect: /u+/votes -> /u+/list?v=1
/u+/votes was used somewhere in the past. While I don't think anyone still uses it, nothing's wrong with providing a redirect.
-rw-r--r--lib/VNDB/Handler/Misc.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 7f7fee45..5a9b9a2a 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -28,6 +28,8 @@ YAWF::register(
sub { my $l = defined $_[1] ? $_[1] : '/all'; $_[0]->resRedirect("/u$l", 'perm') },
qr{d([1-9]\d*)\.([1-9]\d*)},
sub { $_[0]->resRedirect("/d$_[1]#$_[2]", 'perm') },
+ qr{u([1-9]\d*)/votes},
+ sub { $_[0]->resRedirect("/u$_[1]/list?v=1", 'perm') },
# rewrite the old category browser to the new-ish search function
qr{v/cat}, sub {