diff --git a/src/c3nav/site/templates/site/fragment_location.html b/src/c3nav/site/templates/site/fragment_location.html index bd965ad3..b8ace557 100644 --- a/src/c3nav/site/templates/site/fragment_location.html +++ b/src/c3nav/site/templates/site/fragment_location.html @@ -5,13 +5,14 @@ {% if name == 'destination' %} {% if origin %} {% if destination %} - {% trans 'swap' %} + {% url 'site.route' origin=destination.location_id destination=origin.location_id as swap_url %} {% else %} - {% trans 'swap' %} + {% url 'site.destination' destination=origin.location_id as swap_url %} {% endif %} {% elif destination %} - {% trans 'swap' %} + {% url 'site.origin' destination=destination.location_id as swap_url %} {% endif %} + {% trans 'swap' %} {% endif %}