Skip to content

Commit 5d5f10e

Browse files
committed
chore: remove unnecessary call to build the absolute uri
1 parent c587c8e commit 5d5f10e

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

core/views.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,12 @@ def get_v3_context_data(self, **kwargs):
261261
libraries.append(
262262
{
263263
"name": lib.display_name_short,
264-
"url": self.request.build_absolute_uri(
265-
reverse(
266-
"library-detail",
267-
kwargs={
268-
"version_slug": version_slug,
269-
"library_slug": lib.slug,
270-
},
271-
)
264+
"url": reverse(
265+
"library-detail",
266+
kwargs={
267+
"version_slug": version_slug,
268+
"library_slug": lib.slug,
269+
},
272270
),
273271
"description": lib.description or "",
274272
"categories": [cat.name for cat in lib.categories.all()],

0 commit comments

Comments
 (0)