diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-08-18 22:01:18 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-08-18 22:01:18 +0200 |
commit | 1c247bc4073451ad156ecedfbd2f7ebe73b56c12 (patch) | |
tree | 522b1527126d4b687229fb3e2c50a3c052f4f310 /application/views/user/login.php | |
parent | f0dd547bd84b4461cdab8d7d556bdb275bf4864a (diff) |
Fix redirect URI when using multiple tabs
If we store only the last called URI in the session we can't support
multiple browser tabs that all need to log in again. Fix this by
storing the URI in the URL.
Also change a trim() to ltrim() so that the URI string we store keeps
it's trailing slash.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/user/login.php')
-rw-r--r-- | application/views/user/login.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/views/user/login.php b/application/views/user/login.php index 3e30d53bd..5b2067bb0 100644 --- a/application/views/user/login.php +++ b/application/views/user/login.php @@ -3,7 +3,7 @@ if (isset($login_error)) { ?> <div class="alert alert-danger">The entered credentials are invalid.</div> <?php } ?> -<?php echo form_open('user/login', array("class" => "form-horizontal login-page")); ?> +<?php echo form_open("user/login?redirect_uri=$redirect_uri", array("class" => "form-horizontal login-page")); ?> <div class="form-group"> <label class="control-label" for="inputUsername">Username</label> <div class="controls"> |