Skip to content

Commit f43e028

Browse files
committed
Fix URL to latest recipe
1 parent ef295ff commit f43e028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GenerateRecipesReadmeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5757
$contentLines[] = '| --- | --- |'.($hasAliases ? ' --- |' : '');
5858
foreach ($data['recipes'] as $package => $versions) {
5959
$latestVersion = array_pop($versions);
60-
$line = sprintf('| [%s](https://packagist.org/packages/%s) | [%s](%s/%s) |', $package, $package, $latestVersion, $package, $latestVersion);
60+
$line = sprintf('| [%s](https://packagist.org/packages/%s) | [%s](../../../tree/main/%s/%s) |', $package, $package, $latestVersion, $package, $latestVersion);
6161
if ($hasAliases) {
6262
$styledAliases = array_map(function ($alias) {
6363
return sprintf('`%s`', $alias);

0 commit comments

Comments
 (0)