Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed problem that redirect does not work when placed in subdirectory. #1132

Closed
wants to merge 3 commits into from

Conversation

ytetsuro
Copy link
Contributor

@ytetsuro ytetsuro commented Aug 3, 2018

When I set CodeIgniter in the following URL, redirect expects the following behavior.

@link: #1126

baseURL

http://example.com/path/to/codeigniter/

requestURL

http://example.com/path/to/codeigniter/auth/index

Redirect expects

redirect('/auth/login') -> http://example.com/path/to/codeigniter/auth/login
redirect('login') -> http://example.com/path/to/codeigniter/auth/login

but, it became as follows.

Redirect actual

redirect('/auth/login') -> http://example.com/auth/login🙅‍♂️
redirect('login') -> http://example.com/path/to/codeigniter/auth/login🙆‍♂️

@ytetsuro
Copy link
Contributor Author

ytetsuro commented Aug 3, 2018

sorry this is bad code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant