From: Iain Patterson Date: Wed, 1 May 2013 14:13:15 +0000 (-0400) Subject: Fix Area in City redirect. X-Git-Tag: 2013-05-13~25 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=019bb882834304615564c9f9e1c28ed1d980d8d9;p=readifood.git Fix Area in City redirect. Use the new URI format when redirecting to a descriptive URI from a from submission. --- diff --git a/lib/area.php b/lib/area.php index 9670a86..720617e 100644 --- a/lib/area.php +++ b/lib/area.php @@ -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']) {