From 226dc45203b043c80884cc13f57e4d9505ef968d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 24 Nov 2008 08:54:03 +0000 Subject: Fix a typo in _show() that broke proper redirection --- core/controllers/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/items.php b/core/controllers/items.php index 705ecbfb..13071843 100644 --- a/core/controllers/items.php +++ b/core/controllers/items.php @@ -45,7 +45,7 @@ class Items_Controller extends REST_Controller { // Redirect to the more specific resource type, since it will render // differently. We could also just delegate here, but it feels more appropriate // to have a single canonical resource mapping. - return url::redirect("{$item->type}s}/$item->id"); + return url::redirect("{$item->type}s/$item->id"); } public function _create($item) { -- cgit v1.2.3