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

Fix for login/logout redirects when not in hosted in root #100

Merged
merged 1 commit into from
May 24, 2022

Conversation

brockallen
Copy link
Member

When redirecting for login/logout and no returnUrl param is provided, we use "/" as the RedirectUri for the AuthenticationProperties. For apps not hosted in the root, this was not treated as app relative and thus would redirect to the root of the site. This PR adds logic to use the Request.PathBase preserving the relative app path on those redirects.

@brockallen brockallen added the bug Something isn't working label May 23, 2022
@brockallen brockallen added this to the 1.2.2 milestone May 23, 2022
@brockallen
Copy link
Member Author

@brockallen brockallen merged commit a906233 into main May 24, 2022
@brockallen brockallen deleted the brock/fix-path-base branch May 24, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant