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 redirect to primary alias when PortalAliasMapping is set to redirect #4547

Conversation

skamphuis
Copy link
Contributor

Fixes #4306

If PortalAliasMapping is set to redirect, and the request is not for the primary alias, user will be redirected

Summary

In advancedUrlRewriter.IsPortalAliasIncorrect there was a check to allow redirection to an alias when forceAlias was used in the querystring.
I added to that check that if the request is not for a primary alias, and PortalAliasMapping is set to redirect, the user will also be redirected to the primary alias

If PortalAliasMapping is set to redirect, and the request is not for the primary alias, user will be redirected
Copy link
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a good change and makes sense with the expected behavior. We want to be sure that we add this to the final testing for the next release @valadas

Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@valadas valadas modified the milestone: 9.9.1 Mar 8, 2021
@valadas valadas removed this from the 9.9.1 milestone Mar 8, 2021
@valadas valadas added this to the 9.9.1 milestone Mar 8, 2021
@valadas valadas merged commit eaba498 into dnnsoftware:develop Mar 8, 2021
@skamphuis skamphuis deleted the feature/4306-PortalAlias-redirecting-when-PortalAliasMapping-is-set-to-redirect branch November 23, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Portal Alias not enforcing Redirect PortalAliasMapping setting on multi-portal/multi-alias sites
3 participants