commit b9e49334e74b7019df73a0dd7777f0e2fd9adf58 Author: Iain R. Learmonth irl@fsfe.org Date: Wed Nov 22 12:40:47 2017 +0000
Removes search page from history when immediately redirecting (Fixes: #24381) --- js/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/router.js b/js/router.js index fce9e0a..9f9f6f3 100644 --- a/js/router.js +++ b/js/router.js @@ -77,8 +77,8 @@ define([ // Redirect to the details page when there is exactly one // search result. if (doSearchView.relays.length == 1) { - document.location = "#details/" + - doSearchView.relays[0].fingerprint; + document.location.replace("#details/" + + doSearchView.relays[0].fingerprint); return; } doSearchView.error = err;
tor-commits@lists.torproject.org