Add id targets to redirects from boost/fav without JS. Resolves #48

This commit is contained in:
McBrayer 2019-01-29 13:06:04 -05:00
parent 7f331eeb48
commit a4dbe81aa1
1 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ def fav(request, id):
'own_acct': request.session['user'],
"preferences": account.preferences})
else:
return redirect(thread, id)
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
else:
return render(request, 'main/fav.html',
{"toot": toot,
@ -712,7 +712,7 @@ def boost(request, id):
'own_acct': request.session['user'],
"preferences": account.preferences})
else:
return redirect(thread, id)
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
else:
return render(request, 'main/boost.html',
{"toot": toot,