From 68f4580046a2adb948cfe51067ae925cf2383b92 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 21 Sep 2016 11:22:36 +0200 Subject: [PATCH] Correct wrong link bug in comment on submission ack email --- comments/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments/views.py b/comments/views.py index 36539a153..322ffe913 100644 --- a/comments/views.py +++ b/comments/views.py @@ -48,7 +48,7 @@ def vet_submitted_comment_ack(request, comment_id): elif comment.submission is not None: email_text += (comment.submission.title + ' by ' + comment.submission.author_list + ' at Submission page https://scipost.org/submission/' - + str(comment.submission.id)) + + comment.submission.arxiv_identifier_w_vn_nr) comment.submission.latest_activity = timezone.now() comment.submission.save() if not comment.is_author_reply: @@ -229,7 +229,7 @@ def express_opinion(request, comment_id, opinion): comment = get_object_or_404(Comment, pk=comment_id) comment.update_opinions (contributor.id, opinion) if comment.submission is not None: - return HttpResponseRedirect('/submission/' + str(comment.submission.id) + + return HttpResponseRedirect('/submission/' + comment.submission.arxiv_identifier_w_vn_nr + '/#comment_id' + str(comment.id)) if comment.commentary is not None: return HttpResponseRedirect('/commentary/' + str(comment.commentary.arxiv_or_DOI_string) + -- GitLab