Skip to content

Commit f232e4e

Browse files
authored
Update download link to use query parameters for version (#1433)
1 parent be34783 commit f232e4e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
$version = $release['version'];
101101
[$major, $minor, $_] = explode('.', $version);
102102
$intro .= "
103-
<li class='hero__version'><a class='hero__version-link' href='/downloads.php#v$version'>$version</a> &middot; <a class='notes' href='/ChangeLog-$major.php#$version'>Changelog</a> &middot; <a class='notes' href='/migration$major$minor'>Upgrading</a></li>\n";
103+
<li class='hero__version'><a class='hero__version-link' href='/downloads.php?version=$major.$minor'>$version</a> &middot; <a class='notes' href='/ChangeLog-$major.php#$version'>Changelog</a> &middot; <a class='notes' href='/migration$major$minor'>Upgrading</a></li>\n";
104104
}
105105
}
106106
$intro .= "</ul>\n";

supported-versions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
?>
6464
<tr class="<?php echo $state ?>">
6565
<td>
66-
<a href="/downloads.php#v<?php echo htmlspecialchars($release['version']) ?>"><?php echo htmlspecialchars($branch) ?></a>
66+
<a href="/downloads.php?version=<?php echo htmlspecialchars($branch) ?>"><?php echo htmlspecialchars($branch) ?></a>
6767
</td>
6868
<td><?php echo htmlspecialchars($initial->format('j M Y')) ?></td>
6969
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($initial, $now)) ?></em></td>

0 commit comments

Comments
 (0)