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

Re: [tor-bugs] #18893 [Metrics/Globe]: Redirect Globe requests to Atlas



#18893: Redirect Globe requests to Atlas
----------------------------------------------+----------------------------
 Reporter:  karsten                           |          Owner:  isis
     Type:  enhancement                       |         Status:
 Priority:  Medium                            |  needs_review
Component:  Metrics/Globe                     |      Milestone:
 Severity:  Normal                            |        Version:
 Keywords:  complete-before-abandoning-globe  |     Resolution:
Parent ID:                                    |  Actual Points:
 Reviewer:                                    |         Points:
                                              |        Sponsor:
----------------------------------------------+----------------------------

Comment (by irl):

 Adding in a redirect for the top 10 page, assuming my patch in #5430
 (comment 12) is merged. Also adding some text for those with javascript
 disabled.

 {{{
 <html>
 <head>
 <script type="text/javascript">
 (function () {
     var atlas = "https://atlas.torproject.org/";
     var hash = window.location.hash.substring(1);
     if (!hash) {
         window.location.replace(atlas);
     } else if (hash.startsWith("/relay/")) {
         window.location.replace(atlas + "#details/" + hash.substring(7));
     } else if (hash.startsWith("/search/query=")) {
         window.location.replace(atlas + "#search/" + hash.substring(14));
     } else if (hash.startsWith("/top10")) {
         window.location.replace(atlas + "#top10");
     } else {
         window.location.replace(atlas);
     }
 })();
 </script>
 </head>
 <body>
 <h1>Globe is shutdown</h1>
 <p>Globe has been shut down. <a
 href="https://atlas.torproject.org/";>Atlas</a>
 provides the same functionality that Globe has provided in the past. If
 you
 have JavaScript enabled, you will be redirected shortly.</p>
 </body>
 </html>
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18893#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs