From f7d0a3a0a129f2c862d07c05b566ec1485296d0a Mon Sep 17 00:00:00 2001 From: Michael Fairchild <mfairchild365@gmail.com> Date: Tue, 17 Oct 2017 09:41:24 -0500 Subject: [PATCH] Fix broken links --- www/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/index.php b/www/index.php index 5572d78..b272228 100644 --- a/www/index.php +++ b/www/index.php @@ -26,6 +26,9 @@ function loadDefaultSections($page) $page->navlinks = file_get_contents('http://www.unl.edu/ucomm/sharedcode/navigation.html'); $page->contactinfo = renderTemplate('templates/local-footer.tpl.php'); $page->affiliation = ''; + + //Convert relative paths to absolute + $page->navlinks = UNL_Search::removeRelativePaths($page->navlinks, 'https://www.unl.edu/'); } $isEmbed = isset($_GET['embed']) && $_GET['embed']; -- GitLab