views: fix base url to omit scheme for when we connect through a https gateway
[pharext/pharext.org] / app / views / navbar.phtml
index 310ab533b469277573eb1ac25ec3ad081d5f85e3..0b0a5986168ffd2404575465bd05bec5cb9e7669 100644 (file)
@@ -9,7 +9,7 @@
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                        </button>
-                       <a class="navbar-brand" href="<?=$baseUrl->mod("./")?>">PHARext</a>
+                       <a class="navbar-brand" href="<?=$baseUrl->mod(":./")?>">PHARext</a>
                </div>
 
                <!-- Collect the nav links, forms, and other content for toggling -->
                                                data-toggle="dropdown"
                                                role="button"
                                                aria-expand="false"
-                                               href="<?=$baseUrl->mod("./pages/Home")?>">
+                                               href="<?=$baseUrl->mod(":./pages/Home")?>">
                                                About
                                                <span class="caret"></span>
                                        </a>
                                        <ul class="dropdown-menu" role="menu">
                                                <?php foreach ($pages as $page) : ?>
-                                               <li><a href="<?= $baseUrl->mod("./pages/". rawurlencode($page)) ?>">
+                                               <li><a href="<?= $baseUrl->mod(":./pages/". rawurlencode($page)) ?>">
                                                        <?= $this->e($page) ?></a></li>
                                                <?php endforeach; ?>
                                        </ul>
                                </li>
                                <?php else : ?>
-                               <li><a href="<?=$baseUrl->mod("./pages/Home")?>">About</a></li>
+                               <li><a href="<?=$baseUrl->mod(":./pages/Home")?>">About</a></li>
                                <?php endif; ?>
                                <li
                                        <?php if ($location == "github") : ?>
                                        class="active"
                                        <?php endif; ?>
-                                       ><a href="<?=$baseUrl->mod("./github")?>">Github</a>
+                                       ><a href="<?=$baseUrl->mod(":./github")?>">Github</a>
                                </li>
                        </ul>
                        <?php if (isset($session)) : ?>
@@ -60,7 +60,7 @@
                                                </a>
                                                <ul class="dropdown-menu" role="menu">
                                                        <li>
-                                                               <a href="<?= $baseUrl->mod("./reset") ?>">
+                                                               <a href="<?= $baseUrl->mod(":./reset") ?>">
                                                                        Signout
                                                                </a>
                                                        </li>