Skip to content

Commit 3beb50e

Browse files
committed
issue #10906 Unable to resolve reference to 'some/path/README.md' for \ref command
The `target` can also be a filename so this has to be checked independent of the language of the file where the link is (here it is in `Mainpage.hpp` so the Cpp language will be returned!). (see also analyses with the issue)
1 parent c2002ae commit 3beb50e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ DocRef::DocRef(DocParser *parser,DocNodeVariant *parent,const QCString &target,c
693693
ASSERT(!target.isEmpty());
694694
m_relPath = parser->context.relPath;
695695
const SectionInfo *sec = SectionManager::instance().find(parser->context.prefix+target);
696-
if (sec==nullptr && parser->context.lang==SrcLangExt::Markdown) // lookup as markdown file
696+
if (sec==nullptr && getLanguageFromFileName(target)==SrcLangExt::Markdown) // lookup as markdown file
697697
{
698698
sec = SectionManager::instance().find(markdownFileNameToId(target));
699699
}

0 commit comments

Comments
 (0)