Fix Area in City redirect.
authorIain Patterson <me@iain.cx>
Wed, 1 May 2013 14:13:15 +0000 (10:13 -0400)
committerIain Patterson <me@iain.cx>
Wed, 1 May 2013 14:13:15 +0000 (10:13 -0400)
Use the new URI format when redirecting to a descriptive URI from a from
submission.

lib/area.php

index 9670a86..720617e 100644 (file)
@@ -9,7 +9,7 @@
   }
   else if ($_POST['city_id']) {
     /* XXX: city_id is actually a string $city_name/$city_id */
-    header(sprintf("Location: http%s://%s/%s/in/%s", ($_SERVER['HTTPS']) ? "s" : "", $_SERVER['HTTP_HOST'], $module, $_POST['city_id']));
+    header(sprintf("Location: http%s://%s/%s/in/city/%s", ($_SERVER['HTTPS']) ? "s" : "", $_SERVER['HTTP_HOST'], $module, $_POST['city_id']));
     exit;
   }
   else if ($_POST['update_area']) {