Skip to content

Commit

Permalink
Merge pull request #3265 from cisagov/nl/3264-fix-domain-request-hype…
Browse files Browse the repository at this point in the history
…rlink

[DRAFT - pending ticket review] #3264 - Fix domain request admin table hyperlink - [NL]
  • Loading branch information
CocoByte authored Dec 26, 2024
2 parents 1c28090 + 080890b commit ccd4833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registrar/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ def custom_election_board(self, obj):
@admin.display(description=_("Requested Domain"))
def custom_requested_domain(self, obj):
# Example: Show different icons based on `status`
url = reverse("admin:registrar_domainrequest_changelist") + f"?portfolio={obj.id}"
url = reverse("admin:registrar_domainrequest_changelist") + f"{obj.id}"
text = obj.requested_domain
if obj.portfolio:
return format_html('<a href="{}"><img src="/public/admin/img/icon-yes.svg"> {}</a>', url, text)
Expand Down

0 comments on commit ccd4833

Please sign in to comment.