Add id targets to redirects from boost/fav without JS. Resolves #48
This commit is contained in:
parent
7f331eeb48
commit
a4dbe81aa1
|
@ -686,7 +686,7 @@ def fav(request, id):
|
||||||
'own_acct': request.session['user'],
|
'own_acct': request.session['user'],
|
||||||
"preferences": account.preferences})
|
"preferences": account.preferences})
|
||||||
else:
|
else:
|
||||||
return redirect(thread, id)
|
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
|
||||||
else:
|
else:
|
||||||
return render(request, 'main/fav.html',
|
return render(request, 'main/fav.html',
|
||||||
{"toot": toot,
|
{"toot": toot,
|
||||||
|
@ -712,7 +712,7 @@ def boost(request, id):
|
||||||
'own_acct': request.session['user'],
|
'own_acct': request.session['user'],
|
||||||
"preferences": account.preferences})
|
"preferences": account.preferences})
|
||||||
else:
|
else:
|
||||||
return redirect(thread, id)
|
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
|
||||||
else:
|
else:
|
||||||
return render(request, 'main/boost.html',
|
return render(request, 'main/boost.html',
|
||||||
{"toot": toot,
|
{"toot": toot,
|
||||||
|
|
Loading…
Reference in New Issue