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
Pagination does not use the baseURL property.
It is instead based on the current URL, i.e. the page you are on when the links are requested.
I have added additional unit tests to show that this is working as intended.
When CI is running from a subdirectory, the pager links are incorrect and missing the subdirector(ies) in URI.
CodeIgniter 4 version
4.0.0-beta.2
Affected module(s)
PAGER
Expected behavior, and steps to reproduce if appropriate
Base url: http://mysite.com
CI in subfolder "ci/v4", so final url for site is "http://mysite.com/ci/v4/"
In view, calling "$pager->links()", using all other default settings, pagination links are:
and should be:
In my app.php AND .env file, I have app.baseURL set to "http://mysite.com/ci/v4/
If I run $page->setPath( 'ci/v4//' ) prior to output, then it is correct. but it hardcodes the uri which isn't desirable.
Context
The text was updated successfully, but these errors were encountered: