summaryrefslogtreecommitdiff
path: root/design/templates/comments
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/comments')
-rw-r--r--design/templates/comments/posted.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/design/templates/comments/posted.html b/design/templates/comments/posted.html
index 9a478cf..e5fed65 100644
--- a/design/templates/comments/posted.html
+++ b/design/templates/comments/posted.html
@@ -13,7 +13,10 @@
document.getElementById('countdown').innerHTML = timeLeft;
if(timeLeft === 0){
clearInterval(cinterval);
- window.location="{{comment.content_object.get_absolute_url}}";
+ {% if not comment.content_object.get_absolute_url %}
+ window.location="/";
+ {% else%}
+ window.location="{{comment.content_object.get_absolute_url}}";{%endif%}
}
};