Unverified Commit 1d9f62e1 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

redir / multiple choice: keep non-default HAFAS backend

parent 401eafc3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1908,6 +1908,10 @@ sub redirect_to_station {
		$params = $params->to_string;
		$self->redirect_to("/z/${input}?${params}");
	}
	elsif ( $params->param('hafas') and $params->param('hafas') ne '1' ) {
		$params = $params->to_string;
		$self->redirect_to("/${input}?${params}");
	}
	else {
		my @candidates
		  = Travel::Status::DE::IRIS::Stations::get_station($input);