Fix URL paths in dropdown menu

This commit is contained in:
cytopia 2016-12-02 11:18:10 +01:00
parent 31efa378a6
commit d6920f77d3
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -47,7 +47,7 @@
<a class="nav-link dropdown-toggle" href="#" id="supportedContentDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Info</a>
<div class="dropdown-menu" aria-labelledby="supportedContentDropdown">
<?php foreach ($files as $href => $name): ?>
<a class="dropdown-item" href="<?php echo $href;?>"><?php echo $name;?></a>
<a class="dropdown-item" href="/<?php echo $href;?>"><?php echo $name;?></a>
<?php endforeach; ?>
</div>
</li>
@ -55,8 +55,8 @@
<?php
// ---- Tools ---- //
$files = array(
'/vendor/phpmyadmin/index.php' => 'phpMyAdmin',
'/vendor/adminer/adminer/index.php' => 'Adminer',
'vendor/phpmyadmin/index.php' => 'phpMyAdmin',
'vendor/adminer/adminer/index.php' => 'Adminer',
'opcache.php' => 'Opcache GUI'
);
$active = (in_array($script, array_keys($files))) ? 'active' : '';
@ -65,7 +65,7 @@
<a class="nav-link dropdown-toggle" href="#" id="supportedContentDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Tools</a>
<div class="dropdown-menu" aria-labelledby="supportedContentDropdown">
<?php foreach ($files as $href => $name): ?>
<a class="dropdown-item" href="<?php echo $href;?>"><?php echo $name;?></a>
<a class="dropdown-item" href="/<?php echo $href;?>"><?php echo $name;?></a>
<?php endforeach; ?>
</div>
</li>