diff options
Diffstat (limited to 'core/controllers/items.php')
-rw-r--r-- | core/controllers/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/items.php b/core/controllers/items.php index 60b2762f..e5f62db6 100644 --- a/core/controllers/items.php +++ b/core/controllers/items.php @@ -25,6 +25,6 @@ class Items_Controller extends REST_Controller { // differently. We could also just delegate here, but it feels more appropriate // to have a single canonical resource mapping. access::required("view", $item); - return url::redirect("{$item->type}s/$item->id"); + return url::redirect($item->url()); } } |