[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Removes search page from history when immediately redirecting (Fixes: #24381)



commit b9e49334e74b7019df73a0dd7777f0e2fd9adf58
Author: Iain R. Learmonth <irl@xxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits