Skip to content

Commit

Permalink
Merge pull request #227 from farziengineer/fix_loginredirect
Browse files Browse the repository at this point in the history
Updated view to handle redirection after bug submit
  • Loading branch information
Sean Auriti authored Jun 7, 2017
2 parents 827cdff + c356509 commit 53c6171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def form_valid(self, form):

# assign issue
self.process_issue(self.request.user, obj, created, domain)
return HttpResponseRedirect(redirect_url)
return HttpResponseRedirect(self.request.META.get('HTTP_REFERER'))


def get_context_data(self, **kwargs):
Expand Down

0 comments on commit 53c6171

Please sign in to comment.