aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-08 11:07:12 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-08 11:07:12 -0700
commit8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe (patch)
tree26be195f79f7675188e286e252d359a43539bd24
parent202d951c3da1ace184c346271a560e9d3191d98e (diff)
downloadmediagoblin-8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe.tar.lz
mediagoblin-8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe.tar.xz
mediagoblin-8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe.zip
Add ?next= when trying to add a comment when not logged in
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 3acd8356..39935b40 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -90,7 +90,8 @@
{% if app_config['allow_comments'] %}
<a
{% if not request.user %}
- href="{{ request.urlgen('mediagoblin.auth.login') }}"
+ href="{{ request.urlgen('mediagoblin.auth.login') }}?next={{
+ request.base_url|urlencode }}"
{% endif %}
class="button_action" id="button_addcomment" title="Add a comment">
{% trans %}Add a comment{% endtrans %}