diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 0c1e29f9b..a7cdd9047 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -59,7 +59,7 @@ def toctree_directive(name, arguments, options, content, lineno, ret.append(state.document.reporter.warning( 'toctree references unknown document %r' % docname, line=lineno)) else: - entries.append((title, ref)) + entries.append((title, docname)) includefiles.append(docname) else: patname = docname_join(env.docname, entry)