-
Description of bugWhen I open the website on a mobile device (android/ios) I get the error: too many redirects. I found out the problem is in the Site Alias Mapping Mode "Cannonical". When you use "Redirect" the problem doesn't exists. Steps to reproduceList the precise steps to reproduce the bug:
The problem only occurs om mobile devices!! on a desktop browser it works as expected Affected version
Affected browserMobile brwoser!
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 15 replies
-
I have moved this issue to a discussion as this is probably not a Dnn issue or something that can be reproduced only with the steps provided. In most cases this is caused by IIS redirect rules or some other external mechanism, can you check:
|
Beta Was this translation helpful? Give feedback.
-
Can you try not specifying the domain name but using {HTTP_HOST} instead, something like this article https://www.namecheap.com/support/knowledgebase/article.aspx/9953/38/iis-redirect-http-to-https |
Beta Was this translation helpful? Give feedback.
-
I am experiencing this too on a multi-portal site, see #4148 I do have one redirect rule to HTTPS which shouldn't have an impact on this:
At the very least, a way to disable mobile detection would be great since we never use it on responsive sites. |
Beta Was this translation helpful? Give feedback.
-
Hi @mitchelsellers. I have had dozens of sites setup this way for many years and have never experienced this problem. How else would you suggest we redirect all traffic to HTTPS, if it even has anything to do with the issue? |
Beta Was this translation helpful? Give feedback.
-
I ran into this the other day and prematurely commented, later removing it. I wanted to do some more investigating. I had canonical setup in the portal alias settings and had three portal aliases listed from initial setup (localhost, dev.mysite.com, mysite.com), all of which were also in IIS bindings for the site, with zero redirects setup in web.config. If I tried to load the site on mobile, or even with developer tools to simulate mobile, causing the dnnisMobile in the request (forgot what it was called exactly) the error response was "invalid portal requested" and caused too many redirects error. A quick look at fiddler didn't show any jumping from http to https or any other abnormality that I could spot. The only way to prevent this was to make sure that the portal that's being requested matches the primary alias, and this only happens on mobile. Sorry for not-so-great info, but got sidetracked and wasn't able to give it more then a few to look into it but seeing activity on here I wanted to share. I'll try to Version: DNN 9.7.2 |
Beta Was this translation helpful? Give feedback.
-
For those who can actually reproduce this issue, can you guys try to setup a clean new site with a similar setup and still make it happen: If so, please provide a step by step so we can debug this. If not, then you need to start looking at what might be configured differently, I am thinking friendly url settings here maybe... |
Beta Was this translation helpful? Give feedback.
-
Here you go @valadas. Steps to reproduce in a local environment.
Worth mentioning here that there is no SSL certificate, no redirects, etc. |
Beta Was this translation helpful? Give feedback.
-
Now that we have steps to reproduce, I created an issue for it #4157 I'll be investigating this shortly... |
Beta Was this translation helpful? Give feedback.
Now that we have steps to reproduce, I created an issue for it #4157
I'll be investigating this shortly...