Skip to content

Commit f90995f

Browse files
authored
Merge pull request #782 from phpDocumentor/bugfix/urlGenerator
[BUGFIX] Use output file path for relative url calculations
2 parents a729e66 + 3198c42 commit f90995f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/guides/src/RenderContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function getLink(string $name): string
134134

135135
public function getDirName(): string
136136
{
137-
$dirname = dirname($this->getCurrentFileName());
137+
$dirname = dirname($this->outputFilePath);
138138

139139
if ($dirname === '.') {
140140
return '';

0 commit comments

Comments
 (0)