Serve .onion links on our static websites accessed via .onion
When visiting a TPO website via its .onion address, many of the links on those pages point to Internet adresses instead of their corresponding .onion address. For example, visiting the .onion for blog.torproject.org
, http://pzhdfe7jraknpj2qgu5cz2u3i4deuyfwmonvzu5i3nyw4t4bmg7o5pad.onion displays navigation links on the top of the page that point to the canonical domain instead of the .onion adresses. When a Tor Browser clicks a link pointing to one of these sites, it will hit an exit node and if automatic .onion redirection is enabled, the Onion-Location
header will cause the page to be loaded a second time. This leads to unnecessary delays when navigating and hopping between different TPO websites.
In #40667 (closed) we discussed two approaches to fixing this problem:
- modify the pages dynamically when serving them through the .onion address
- build an "onionized" version of all our static websites and host those on a different
DocumentRoot