Skip to content

Commit

Permalink
CONCD-742 don't duplicate the first link
Browse files Browse the repository at this point in the history
  • Loading branch information
rasarkar committed Mar 25, 2024
1 parent d86a210 commit 9b3d4fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions concordia/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def simple_page(request, path=None, slug=None):
}

guides = Guide.objects.order_by("order")
links = []
try:
guide = guides.get(title__iexact=page.title)
html = "".join((page.body, guide.body))
Expand All @@ -197,10 +198,8 @@ def simple_page(request, path=None, slug=None):
html = page.body
if page.title == "Get started":
ctx["add_navigation"] = True
links.append("Get started", reverse("welcome-guide"))
if "add_navigation" in ctx:
links = [
("Get started", reverse("welcome-guide")),
]
for guide in guides.all():
try:
simple_page = SimplePage.objects.get(title__iexact=guide.title)
Expand Down

0 comments on commit 9b3d4fc

Please sign in to comment.