Author: Luffy (sy-records) Committer: GitHub (web-flow) Pusher: sy-records Date: 2025-09-20T13:12:23+08:00
Commit: https://github.com/php/web-php/commit/f232e4e22b6cb319fd00c6b468cf030b26c22215 Raw diff: https://github.com/php/web-php/commit/f232e4e22b6cb319fd00c6b468cf030b26c22215.diff Update download link to use query parameters for version (#1433) Changed paths: M index.php M supported-versions.php Diff: diff --git a/index.php b/index.php index 9808189f79..79a698a6c7 100644 --- a/index.php +++ b/index.php @@ -100,7 +100,7 @@ $version = $release['version']; [$major, $minor, $_] = explode('.', $version); $intro .= " - <li class='hero__version'><a class='hero__version-link' href='/downloads.php#v$version'>$version</a> · <a class='notes' href='/ChangeLog-$major.php#$version'>Changelog</a> · <a class='notes' href='/migration$major$minor'>Upgrading</a></li>\n"; + <li class='hero__version'><a class='hero__version-link' href='/downloads.php?version=$major.$minor'>$version</a> · <a class='notes' href='/ChangeLog-$major.php#$version'>Changelog</a> · <a class='notes' href='/migration$major$minor'>Upgrading</a></li>\n"; } } $intro .= "</ul>\n"; diff --git a/supported-versions.php b/supported-versions.php index bc08dbba74..c7e25af638 100644 --- a/supported-versions.php +++ b/supported-versions.php @@ -63,7 +63,7 @@ ?> <tr class="<?php echo $state ?>"> <td> - <a href="/downloads.php#v<?php echo htmlspecialchars($release['version']) ?>"><?php echo htmlspecialchars($branch) ?></a> + <a href="/downloads.php?version=<?php echo htmlspecialchars($branch) ?>"><?php echo htmlspecialchars($branch) ?></a> </td> <td><?php echo htmlspecialchars($initial->format('j M Y')) ?></td> <td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($initial, $now)) ?></em></td>
