You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've deployed project to test.com/e and set baseURL from .env file. Issues are:
Redirect:
redirect()->to('uri') function redirects to test.com/uri not test.com/e/uri
redirect()->to('uri') at localhost(spark serve) duplicates url when tries to redirect. But at server works as expected but with issue N1. At localhost I'm using with trailing slash to bypass the issue ->to('/uri')
base_url misbehave:
base_url('uri') -> test.com/e/uri.
base_url('/uri') -> test.com/uri. Should be test.com/e/uri I guess
base_url() . 'uri' -> test.com/e/uri (works but not a pretty solution)
Pagination: $pager->links() creates test.com/?page=2 instead of test.com/e?page=2
The text was updated successfully, but these errors were encountered:
jim-parry
changed the title
URL, Redirect and Pagination misbehave
Bug: URL, Redirect and Pagination misbehave
Oct 19, 2019
jim-parry
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Oct 19, 2019
The simplest example: when I want to go admin panel, it should redirect to login page (test.com/e/admin/user/login). But redirects to test.com/admin/user/login (without folder name e)
Post.php (controller)
public function index()
{
if(!$this->isLoggedIn())
{
return redirect()->to('/admin/user/login');
// return redirect()->to('admin/user/login'); // this also not working
}
// some code
}
Little fix: URL to your CodeIgniter root. Typically this will be your base URL, WITH a trailing slash. Then it should be like this on fresh installation: public $baseURL = 'http://localhost:8080/';
I've similar problems as #2119 + some bonuses :)
I've deployed project to
test.com/e
and setbaseURL
from .env file. Issues are:redirect()->to('uri')
function redirects totest.com/uri
nottest.com/e/uri
redirect()->to('uri')
at localhost(spark serve) duplicates url when tries to redirect. But at server works as expected but with issue N1. At localhost I'm using with trailing slash to bypass the issue->to('/uri')
base_url('uri')
->test.com/e/uri
.base_url('/uri')
->test.com/uri
. Should betest.com/e/uri
I guessbase_url() . 'uri'
->test.com/e/uri
(works but not a pretty solution)$pager->links()
createstest.com/?page=2
instead oftest.com/e?page=2
The text was updated successfully, but these errors were encountered: