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

Portal Alias not enforcing Redirect PortalAliasMapping setting on multi-portal/multi-alias sites #4306

Closed
2 tasks done
tpperlman opened this issue Nov 13, 2020 · 8 comments · Fixed by #4547
Closed
2 tasks done

Comments

@tpperlman
Copy link

Description of bug

On a multi-portal site with multiple aliases, DNN does not redirect to the primary URL when the PortalAliasMapping is set to Redirect. I have the same domains with and without the www prefix, and I am trying to redirect all traffic to the www one but it does not redirect. I have verified this on two separate DNN v9.8 sites.

I have verified that the aliases are setup properly in the PortalAlias table, the primary domain's IsPrimary column is set to 1, and the primary alias also matches the DefaultPortalAlias in the PortalSettings table.

Steps to reproduce

Create a multi-portal DNN installation and set multiple aliases for each portal. Set one domain with the www prefix and another without the prefix.

Current behavior

After setting the aliases, load the www and non-www aliases and notice there is no redirect.

Expected behavior

When the PortalAliasMapping is set to Redirect, it should always redirect to the primary alias.

Additional context

This may or may not be related to issue #4158

This also may be problematic from an SEO perspective since there is no canonical tag and sites could get indexed using multiple aliases.

Affected version

  • 09.08.00 latest supported release

Affected browser

  • Any
@tpperlman
Copy link
Author

Can anyone confirm this issue? I am having to use the URL rewriter in web.config to address this.

@Tychodewaard
Copy link
Contributor

I have the same issue with canonicals. So, also a problem with SEO.

@tpperlman
Copy link
Author

tpperlman commented Jan 27, 2021

Thank you for acknowledging the issue @Tychodewaard. I'm still having it for months now. The only way I can resolve has been with the URL Rewriter.

@Tychodewaard
Copy link
Contributor

Could it be related to #3081? Which would mean that multiple things in that area stopped working.

@tpperlman
Copy link
Author

@Tychodewaard I don't think it is related to that issue. It is my hunch it is related to #4157 since I was also having that issue and perhaps the fix for that one introduced this issue.

@skamphuis
Copy link
Contributor

skamphuis commented Jan 27, 2021

@tpperlman Is the issue reproducable? I mean, can you set up a clean site and create the problem? Me and my colleagues spent quite some hours to fix #2841 last year, and this looks related, from what I read in this issue.
The pullrequest describes what we ran into... #3832

@tpperlman
Copy link
Author

@skamphuis It happened on a couple of recent new installs and upgrades. I documented it as best as I can.

@mitchelsellers
Copy link
Contributor

I have recreated a similar issue, with a slightly different situation on an 9.8.0 installation as well. A specific bit of this example.

Primary Alias - Is a child portal

Additional aliases are other domain names

Example:

Primary - mysite.com/child

Additional
MyOtherSite.com
MyOtherSite.org

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

Successfully merging a pull request may close this issue.

4 participants