diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index 1e7d13972e..b5b4b44ca0 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -277,7 +277,7 @@ docstring InsetBibitem::xhtml(XHTMLStream & xs, OutputParams const &) const // need to use "name" anyway, eventually, because some browsers do not // handle jumping to ids. If we don't do that, though, we can just put the // id into the span tag. - string const attrs = "id='" + to_utf8(getParam("key")) + "'"; + string const attrs = "id='" + to_utf8(bibLabel()) + "'"; xs << CompTag("a", attrs); xs << StartTag("span", "class='biblabel'"); xs << bibLabel();