diff options
| -rwxr-xr-x | bin/nvm | 2 | ||||
| -rw-r--r-- | templates/departure_list.html | 2 | 
2 files changed, 3 insertions, 1 deletions
| @@ -154,6 +154,8 @@ class Departure:          self.stop_name = obj.get("stop", dict()).get("name", None)          self.station_name = obj.get("station", dict()).get("name", self.stop_name) +        self.quoted_stop_name = aiohttp.helpers.quote(self.stop_name) +          try:              self.location = (                  obj["stop"]["location"]["longitude"], diff --git a/templates/departure_list.html b/templates/departure_list.html index dea886c..de7b48d 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -15,7 +15,7 @@  		{% endif %}  		<ul class="departures">  			{% for departure in departures %} -				<li class="{{ departure.classes }}" onclick="location.href='https://dbf.finalrewind.org/map/{{ departure.tripId }}/0';"> +				<li class="{{ departure.classes }}" onclick="location.href='https://dbf.finalrewind.org/map/{{ departure.tripId }}/0?from={{ departure.quoted_stop_name }}';">  					<span class="line {{ departure.line.css_class }}">{{ departure.line.name }}</span>  					{% if departure.suffix %}  						<span class="destsuffix">{{ departure.suffix }}</span> | 
