title = "Download"
url = "/download/:platform?linux"
layout = "download"
description = "Find the official Godot editor and export template downloads here."
is_hidden = 0
==
<?php
function onStart()
{
  use Jenssegers\Agent\Agent;

  $agent = new Agent();
  $current_os = 'windows';
  if ($agent->is('Linux')) {
    $current_os = 'linux';
  } else if ($agent->is('OS X')) {
    $current_os = 'osx';
  } else if ($agent->is('Android')) {
    $current_os = 'android';
  }

  return Redirect::to('/download/' . $current_os);
}
?>
==
