Fixed URL finding in navbar.php