Opened 5 weeks ago

Last modified 5 weeks ago

#31405 assigned defect

Download links of Tor mirrors should not point to torproject.org domain

Reported by: anadahz Owned by: hiro
Priority: Medium Milestone:
Component: Community/Mirrors Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The download links from mirrors should not point to torproject.org domain but instead to the original mirror server.

Example mirror URL: https://mirror.oldsql.cc/tor/download/

Child Tickets

Change History (2)

comment:1 Changed 5 weeks ago by antonela

Cc: traumschule trac-dip-importer removed
Component: Webpages/WebsiteCommunity/Mirrors
Owner: changed from hiro to ggus

comment:2 Changed 5 weeks ago by ggus

Owner: changed from ggus to hiro
Status: newassigned

Since Lektor migration, we're hardcoding an url "wwww.torproject.org" to download. This macro must be rewritten in order to download from mirrors:

https://gitweb.torproject.org/project/web/tpo.git/tree/templates/macros/downloads.html

{% macro render_windows(version, alt) %}
  {% set download_prefix = 'https://www.torproject.org/dist/torbrowser/' + version + '/' %}
  {% if alt == 'en' %}
    {% set alt = 'en-US' %}
  {% elif alt == 'es' %}
    {% set alt = 'es-ES' %}
  {% endif %}
  {% set download_link_64 = download_prefix + 'torbrowser-install-win64-' + version + '_' + alt + '.exe' %}
  {% set download_link_32 = download_prefix + 'torbrowser-install-' + version + '_' + alt + '.exe' %}
  {% set sig_link_64 = download_link_64 + '.asc' %}
  {% set sig_link_32 = download_link_32 + '.asc' %}

Note: See TracTickets for help on using tickets.