Skip to content

Commit

Permalink
Merge pull request #6063 from akatsoulas/typo-urls
Browse files Browse the repository at this point in the history
Add the correct url names in the conditional
  • Loading branch information
akatsoulas committed Jun 13, 2024
2 parents dbe82a5 + 690f9e6 commit 8fe9ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitsune/products/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def document_listing(request, topic_slug, product_slug=None, subtopic_slug=None)

topic_navigation = any(
[
request.resolver_match.url_name == "products.documents",
request.resolver_match.url_name == "products.subtopics",
request.resolver_match.url_name == "products.topic_documents",
request.resolver_match.url_name == "products.topic_product_documents",
topic_slug and not product_slug,
]
)
Expand Down

0 comments on commit 8fe9ec7

Please sign in to comment.