Skip to content

Bug: URL, Redirect and Pagination misbehave #2347

Description

@muradmustafayev

I've similar problems as #2119 + some bonuses :)

I've deployed project to test.com/e and set baseURL from .env file. Issues are:

  • Redirect:
  1. redirect()->to('uri') function redirects to test.com/uri not test.com/e/uri
  2. 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:
  1. base_url('uri') -> test.com/e/uri.
  2. base_url('/uri') -> test.com/uri. Should be test.com/e/uri I guess
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugVerified issues on the current code behavior or pull requests that will fix them

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions