Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
516 stars 157 forks source link

broken links in accident stats pages #382

Closed bobbyr172 closed 6 years ago

bobbyr172 commented 6 years ago

The "next page"/"previous page" URL links in the accident stats pages do not redirect properly, resulting in a 404 error. For example:

http://real.flightairmap.com/accident/2006

The default display lists the first 25 accidents (sorted by most recent) in 2006. The "next page" should display the next 25. However, the redirect link is to

http://real.flightairmap.com/accident-detailed/25,50

The correct syntax should be

http://real.flightairmap.com/accident/{date}/{parameter}

For example,

http://real.flightairmap.com/accident/2006/25,50 or http://real.flightairmap.com/accident/2006-01/25,50

A helpful feature addition would include a choice of how many results to display per page (10, 25, 50, 100,??)

Ysurac commented 6 years ago

Thanks, it's fixed in latest commit. When I will find a way to display the choice of numbers of results per page I will add it :)