Skip to content

Commit

Permalink
Merge pull request #2408 from codeigniter4/previousurlfix
Browse files Browse the repository at this point in the history
Ensure previous_url() gets accurate URI.
  • Loading branch information
lonnieezell authored Nov 15, 2019
2 parents a42c765 + 380ac13 commit 4b9d151
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 @@ -373,7 +373,7 @@ protected function handleRequest(RouteCollectionInterface $routes = null, $cache

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

unset($uri);

Expand Down

0 comments on commit 4b9d151

Please sign in to comment.