From b47f515ad3a58b791dd03008b11f52081f6f9d88 Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Wed, 1 Apr 2015 11:47:04 +0200 Subject: [PATCH] Display notes as absolute URLs --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index 9ab70f6..765416e 100644 --- a/index.php +++ b/index.php @@ -1938,6 +1938,12 @@ function buildLinkList($PAGE,$LINKSDB) $taglist = explode(' ',$link['tags']); uasort($taglist, 'strcasecmp'); $link['taglist']=$taglist; + + if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. + strlen($link["url"]) === 7) { + $link["url"] = indexUrl() . $link["url"]; + } + $linkDisp[$keys[$i]] = $link; $i++; }