diff --git a/sphinx_needs/layout.py b/sphinx_needs/layout.py index 36578fd6c..41df8d237 100644 --- a/sphinx_needs/layout.py +++ b/sphinx_needs/layout.py @@ -692,7 +692,7 @@ def meta_id(self) -> nodes.inline: todocname=_docname, targetid=self.need["id"], child=nodes_id_text.deepcopy(), - title=self.need["id"], + title=None, ) id_container += id_ref return id_container diff --git a/sphinx_needs/roles/need_incoming.py b/sphinx_needs/roles/need_incoming.py index ece951aef..8f837549e 100644 --- a/sphinx_needs/roles/need_incoming.py +++ b/sphinx_needs/roles/need_incoming.py @@ -66,7 +66,7 @@ def process_need_incoming( _docname, target_need["target_id"], node_need_backref[0].deepcopy(), - node_need_backref["reftarget"], + target_need["title"], ) else: assert ( diff --git a/sphinx_needs/roles/need_outgoing.py b/sphinx_needs/roles/need_outgoing.py index b777c9328..1e6905004 100644 --- a/sphinx_needs/roles/need_outgoing.py +++ b/sphinx_needs/roles/need_outgoing.py @@ -90,7 +90,7 @@ def process_need_outgoing( _docname, target_id, node_need_ref[0].deepcopy(), - node_need_ref["reftarget"], + target_need["title"], ) else: assert (