From 9ea8523e85f1488d6964330fad75a811611f0501 Mon Sep 17 00:00:00 2001
From: Robert Sparks <rjsparks@nostrum.com>
Date: Wed, 15 Feb 2023 11:37:56 -0600
Subject: [PATCH] feat: add target to bibxml-ids (#5148)

---
 ietf/doc/utils.py             | 2 +-
 ietf/templates/doc/bibxml.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ietf/doc/utils.py b/ietf/doc/utils.py
index 3c83b16be..14dfb9513 100644
--- a/ietf/doc/utils.py
+++ b/ietf/doc/utils.py
@@ -1207,5 +1207,5 @@ def bibxml_for_draft(doc, rev=None):
     if name.startswith('rfc'): # bibxml3 does not speak of RFCs
         raise Http404()
         
-    return render_to_string('doc/bibxml.xml', {'name':name, 'doc':doc, 'doc_bibtype':'I-D'})
+    return render_to_string('doc/bibxml.xml', {'name':name, 'doc':doc, 'doc_bibtype':'I-D', 'settings':settings})
 
diff --git a/ietf/templates/doc/bibxml.xml b/ietf/templates/doc/bibxml.xml
index a7513df47..750789da6 100644
--- a/ietf/templates/doc/bibxml.xml
+++ b/ietf/templates/doc/bibxml.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<reference anchor="{{doc_bibtype}}.{{name|slice:"6:"}}">
+<reference anchor="{{doc_bibtype}}.{{name|slice:"6:"}}" target="{{ settings.IDTRACKER_BASE_URL }}{% url "ietf.doc.views_doc.document_html" name=doc.name rev=doc.rev %}">
    <front>
       <title>{{doc.title}}</title>{% for author in doc.documentauthor_set.all %}
       <author initials="{{ author.person.initials }}" surname="{{ author.person.last_name }}" fullname="{{ author.person.name }}">