From 84cbc5dd301f989bac56fbc69abb136c4e9e73ec Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Mar 2023 20:52:49 +0000 Subject: [PATCH] backend: use named routes in url_for --- lib/PoorBooru/Backend/Controller/Tags.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PoorBooru/Backend/Controller/Tags.pm b/lib/PoorBooru/Backend/Controller/Tags.pm index 9be07f5..6cdee89 100644 --- a/lib/PoorBooru/Backend/Controller/Tags.pm +++ b/lib/PoorBooru/Backend/Controller/Tags.pm @@ -23,7 +23,7 @@ sub list ($self) my @tags = map +{ name => $_->{name}, count => $_->{count}, - uri => $self->url_for("/tag/$_->{name}"), + uri => $self->url_for("tag_show", tag_id_or_name => $_->{name}), }, @{$res->json->{tags}}; return $self->render(