git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added STATIC_URL to context for icons.
[philo.git]
/
templatetags
/
nodes.py
diff --git
a/templatetags/nodes.py
b/templatetags/nodes.py
index
73492d4
..
5ae507d
100644
(file)
--- a/
templatetags/nodes.py
+++ b/
templatetags/nodes.py
@@
-55,10
+55,7
@@
class NodeURLNode(template.Node):
raise
return settings.TEMPLATE_STRING_IF_INVALID
else:
- if subpath[0] == '/':
- subpath = subpath[1:]
-
- url = node.get_absolute_url() + subpath
+ url = node.construct_url(subpath)
if self.as_var:
context[self.as_var] = url