Skip to content

Commit bd53802

Browse files
committed
api.jqueryui.com/*: Fix link to full listings.
1 parent 5273ec8 commit bd53802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

themes/api.jqueryui.com/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
$latestVersion = key( $versions );
1313
$thisVersion = explode( "/", JQUERY_LIVE_SITE );
1414
$thisVersion = $thisVersion[1];
15+
$rootUrl = $thisVersion === $latestVersion ? '' : "/$thisVersion";
1516
?>
1617

1718
<div class="content-right twelve columns">
@@ -29,7 +30,7 @@
2930
to find out more about upgrading.</p>
3031

3132
<p>To get started, use the search at the top of the page, view the
32-
<a href="/category/all/">full listing of entries</a>, or browse by
33+
<a href="<?php echo "$rootUrl/category/all"; ?>">full listing of entries</a>, or browse by
3334
category from the sidebar.</p>
3435

3536
<p>jQuery UI <?php echo $thisVersion; ?>

0 commit comments

Comments
 (0)