Skip to content

Commit

Permalink
Merge pull request #27 from Spea/master
Browse files Browse the repository at this point in the history
Fixed redirect using wrong variable
  • Loading branch information
lsmith77 committed Oct 25, 2011
2 parents c5360af + 00cd94f commit 837d60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Imagine/CachePathResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function resolve(Request $request, $targetPath, $filter)
// if the file has already been cached, we're probably not rewriting
// correctly, hence make a 301 to proper location, so browser remembers
if (file_exists($targetPath)) {
return new RedirectResponse($request->getBasePath().$targetPath);
return new RedirectResponse($request->getBasePath().$browserPath);
}

return $targetPath;
Expand Down

0 comments on commit 837d60e

Please sign in to comment.