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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 馃悰 login middleware redirect #12

Merged
merged 1 commit into from Jun 8, 2021

Conversation

predam
Copy link
Contributor

@predam predam commented Jun 8, 2021

Hello,

I found an issue with the login middleware when the forum URL is located in a subpath instead of domain root.

Steps to reproduce:

Flarum location: http://demo.loc/forum

Login with SSO from http://demo.loc

This action will add the following cookie:
flarum_token
** Make sure to not have flarum_session cookie already set

Access http://demo.loc/forum/t/general
You will be redirected to http://demo.loc/t/general

LoginMiddleware.php:40, $request->getUri() returns "http://demo.loc/t/general"

Tracked issue: FSSOE-19

@maicol07 maicol07 self-requested a review June 8, 2021 10:39
@maicol07 maicol07 self-assigned this Jun 8, 2021
@maicol07 maicol07 added bug Something isn't working enhancement New feature or request labels Jun 8, 2021
@maicol07 maicol07 merged commit 8b1673f into maicol07:master Jun 8, 2021
@maicol07
Copy link
Owner

maicol07 commented Jun 8, 2021

Thank you for the PR. As you can see here this is an issue without a fix. Thank you for providing one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants