diff --git a/articleview.cc b/articleview.cc index 96607eff..3d91db0d 100644 --- a/articleview.cc +++ b/articleview.cc @@ -1082,7 +1082,12 @@ void ArticleView::linkHovered ( const QString & link, const QString & , const QS } if( msg.isEmpty() ) - msg = tr( "Definition: %1").arg( def ); + { + if( def.isEmpty() && url.hasFragment() ) + msg = '#' + url.fragment(); // this must be a citation, footnote or backlink + else + msg = tr( "Definition: %1").arg( def ); + } } else {