From d6920f77d3410c69a1660c9be3c728e7c2f63e32 Mon Sep 17 00:00:00 2001
From: cytopia <cytopia@everythingcli.org>
Date: Fri, 2 Dec 2016 11:18:10 +0100
Subject: [PATCH] Fix URL paths in dropdown menu

---
 .devilbox/www/include/navbar.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.devilbox/www/include/navbar.php b/.devilbox/www/include/navbar.php
index a3315edb..42fdf9b3 100644
--- a/.devilbox/www/include/navbar.php
+++ b/.devilbox/www/include/navbar.php
@@ -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>