Skip to content

Commit

Permalink
Fixing the redirect for remote crops
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Apr 13, 2015
1 parent d7d64f1 commit fe03a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bkwld/Croppa/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function handle($request) {
// If the crops_dir is a remote disk, check if the path exists on it and redirect
if (($remote_crops = $this->storage->cropsAreRemote())
&& $this->storage->cropExists($crop_path)) {
return new RedirectResponse($this->storage->cropUrl($crop_path), 301);
return new RedirectResponse($this->url->pathToUrl($crop_path), 301);
}

// Parse the path. In the case there is an error (the pattern on the route
Expand Down

0 comments on commit fe03a34

Please sign in to comment.