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 notifier cookie path #13654

Merged
merged 2 commits into from
May 14, 2023
Merged

Conversation

rjpowers10
Copy link
Contributor

Fixes #13653

Notification works for default tenant using /orchard

default_works

Notification works for tenant A using /orchard/tenantA

tenantA_works

Making sure the standard case still works when there is no prefix at all

nopath_works

@rjpowers10 rjpowers10 marked this pull request as ready for review May 5, 2023 14:45
@rjpowers10
Copy link
Contributor Author

rjpowers10 commented May 5, 2023

There may be other cookie path issues, such as

  1. https://github.com/OrchardCMS/OrchardCore/blob/76d632475946b245e409dc2d579077b799106926/src/OrchardCore.Modules/OrchardCore.Microsoft.Authentication/Configuration/CookieOptionsConfiguration.cs#LL25C35-L25C35

The first example probably has the same problem as the notifier cookie. The second example isn't setting the path at all, so it defaults to /.

@hishamco hishamco merged commit cc52c8d into OrchardCMS:main May 14, 2023
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.

Notifier cookie path doesn't work for applications under a site in IIS
3 participants