diff --git a/lib/PoorBooru.pm b/lib/PoorBooru.pm index a803873..f9ee01e 100644 --- a/lib/PoorBooru.pm +++ b/lib/PoorBooru.pm @@ -163,7 +163,7 @@ get "/random/tag" => sub { my $data = decode_json($res->{content}); # XXX body content. - redirect "/tag/$data->{id}"; + redirect "/tag/$data->{name}"; }; true;