Skip to content

Commit

Permalink
When storing previous url we should use current_url() to ensure we ge…
Browse files Browse the repository at this point in the history
…t baseURL paths and any query vars. Fixes #2378
  • Loading branch information
lonnieezell committed Nov 15, 2019
1 parent 4771484 commit 380ac13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
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 380ac13

Please sign in to comment.