mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 03:04:08 -04:00
Use abs_url() inside url::redirect() calls so that we don't just wind
up tacking onto the base url.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user