Fix exceptions caused by plain_link with no path

This commit is contained in:
Chad Birch
2013-03-01 12:25:07 -07:00
parent 4e74f1c28a
commit 67046e613a

View File

@@ -137,7 +137,7 @@ ${first_defined(kw[1:])}
<%
if (not target or target == '_parent') and c.cname:
target = '_top'
if c.cname and path.startswith('http://'):
if c.cname and path and path.startswith('http://'):
target = '_top'
if target:
kw['target'] = target