diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index ac3c914967..3b77c8e0a5 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -351,7 +351,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("label")) + "'"; + string const attrs = "id='LyXCite-" + to_utf8(getParam("key")) + "'"; xs << html::CompTag("a", attrs); xs << html::StartTag("span", "class='bibitemlabel'"); xs << bibLabel(); diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index 146d67cc83..21e5f774ad 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -960,7 +960,7 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const xs << html::StartTag("div", "class='bibtexentry'"); // FIXME XHTML // The same name/id problem we have elsewhere. - string const attr = "id='" + to_utf8(entry.key()) + "'"; + string const attr = "id='LyXCite-" + to_utf8(entry.key()) + "'"; xs << html::CompTag("a", attr); docstring citekey; if (numbers)