Merge pull request #183 from pikzen/fix-absolute-urls
Display notes as absolute URLs (for real)
This commit is contained in:
commit
82cfe1fe96
1 changed files with 6 additions and 0 deletions
|
@ -1938,6 +1938,12 @@ function buildLinkList($PAGE,$LINKSDB)
|
||||||
$taglist = explode(' ',$link['tags']);
|
$taglist = explode(' ',$link['tags']);
|
||||||
uasort($taglist, 'strcasecmp');
|
uasort($taglist, 'strcasecmp');
|
||||||
$link['taglist']=$taglist;
|
$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;
|
$linkDisp[$keys[$i]] = $link;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue