Skip to content

Commit ab6de49

Browse files
committed
Make sure the file path is taken from the context
1 parent 24f1f0c commit ab6de49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/guides-markdown/src/Markdown/MarkupLanguageParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function parse(ParserContext $parserContext, string $contents): DocumentN
7878

7979
private function parseDocument(NodeWalker $walker, string $hash): DocumentNode
8080
{
81-
$document = new DocumentNode($hash, ltrim($this->getParserContext()->getCurrentAbsolutePath(), '/'));
81+
$document = new DocumentNode($hash, ltrim($this->getParserContext()->getCurrentFileName(), '/'));
8282
$document->setOrphan(!$this->settingsManager->getProjectSettings()->isAutomaticMenu());
8383
$this->document = $document;
8484

0 commit comments

Comments
 (0)