Commit 55b016b6 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

fix parameter passing (do not forward train/ajax to station requests)

parent 843ee822
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ sub render_train {
				dt_now       => DateTime->now( time_zone => 'Europe/Berlin' ),
				station_name => $station_name,
				nav_link =>
				  $self->url_with( 'station', station => $station_name ),
				  $self->url_for( 'station', station => $station_name)->query({detailed => $self->param('detailed')}),
			);
		}
	)->wait;
@@ -1237,7 +1237,7 @@ sub handle_result {
				  or $template eq 'multi'
			),
			force_mobile => ( $template eq 'app' ),
			nav_link => $self->url_with( 'station', station => $station_name ),
			nav_link => $self->url_for( 'station', station => $station_name)->query({detailed => $self->param('detailed')}),
		);
	}
	return;
+2 −2
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@
      <ul class="mroute">
%       for my $stop (@{$departure->{route_pre_diff}}) {
          <li>
          <a href="<%= url_with('station', station => $stop->{name}) %>" class="
          <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>" class="
%         if ($stop->{isAdditional}) {
            additional-stop
%         }
@@ -205,7 +205,7 @@
        </li>
%       for my $stop (@{$departure->{route_post_diff}}) {
          <li>
          <a href="<%= url_with('station', station => $stop->{name}) %>" class="
          <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>" class="
%         if ($stop->{isAdditional}) {
            additional-stop
%         }