diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 21:31:50 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 21:31:50 -0700 |
commit | 7fddd2aced1821f977323fc75f2954f2b240ae37 (patch) | |
tree | ff44b50c5badfaa3618b3b3273a54e368c646ea1 /modules/gallery/controllers/items.php | |
parent | 3d60e39a7b46e61316780405616a47bf2000eb42 (diff) |
Use abs_url() inside url::redirect() calls so that we don't just wind
up tacking onto the base url.
Diffstat (limited to 'modules/gallery/controllers/items.php')
-rw-r--r-- | modules/gallery/controllers/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/items.php b/modules/gallery/controllers/items.php index 13891726..7f60f2b7 100644 --- a/modules/gallery/controllers/items.php +++ b/modules/gallery/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->url(array(), true)); + return url::redirect($item->abs_url()); } } |