Skip to content

Commit

Permalink
Use actual request object when storing previous URI if we have it. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Nov 21, 2016
1 parent 2a88bfd commit ac9a074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function run(RouteCollectionInterface $routes = null)

// Save our current URI as the previous URI in the session
// for safer, more accurate use with `previous_url()` helper function.
$this->storePreviousURL($uri);
$this->storePreviousURL($this->request->uri ?? $uri);

unset($uri);

Expand Down

0 comments on commit ac9a074

Please sign in to comment.