diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-04-30 20:52:54 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-04-30 20:52:54 -0400 |
commit | 16135f944bde91441fb03d26e5790632d6658a4a (patch) | |
tree | 580884384b5c713fa97c539980e2b5e5fea21895 /app/views/partials/navigator.php | |
parent | e6ba75472a9973c488e834867c83393705480325 (diff) | |
download | thedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.tar.gz thedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.tar.bz2 thedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.zip |
app/views/partials/navigator: Make active link check more accurate by removing slashes
Diffstat (limited to 'app/views/partials/navigator.php')
-rw-r--r-- | app/views/partials/navigator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php index 5164e7c..7344f31 100644 --- a/app/views/partials/navigator.php +++ b/app/views/partials/navigator.php @@ -15,7 +15,7 @@ </a> <a href="/posts/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('/posts/') ?? 'has-text-gray' ?>"> + <?php echo $navigation->isActive('posts') ?? 'has-text-gray' ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] @@ -26,7 +26,7 @@ </a> <a href="/projects/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('/projects/') ?? 'has-text-gray' ?>"> + <?php echo $navigation->isActive('projects') ?? 'has-text-gray' ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] @@ -37,7 +37,7 @@ </a> <a href="/contact/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('/contact/') ?? 'has-text-gray' ?>"> + <?php echo $navigation->isActive('contact') ?? 'has-text-gray' ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] |