I faced with issue "ERRTOOMANY_REDIRECTS" in browser when I tried to open page.
I am using umbraco 10.8.1 and SEOChecker 10.0.5.
After investigation I found out the following: this behaviour was caused by enabling "RedirectWhenNodeExists" setting in RedirectConfig ("Redirect when node exists" setting in backoffice). This setting allows SEOChecker.Providers.UrlProviders.UrlRewriteRedirectsProvider.RewriteUrl to rewrite Url, but in some cases it creates an endless loop of redirects.
Steps to reproduce:
Create fresh umbraco app (10.8.1)
Install SEOChecker (10.0.5)
Go to SEO tab -> Settings -> General Settings -> Redirect Settings and enable "Redirect when node exists" option
Create doc type Foo (whatever) and allow it as root and allow create Foo doc type under Foo doc type
Create Foo node as root in content tree and name it as "Root", save it and publish
Under "Root" node create new Foo node "Test", save it and publish (note: url to page is "/test")
Open "/test" in broser and make sure page works like a charm
Rename node "Test" to "Test 1" (note: url to page become "/test1")
Open "/test1" and make sure page works like a charm
Rename node "Test 1" to "Test" (note: url to page become "/test", and now there are two url redirects: "/test", "/test1")
Open "/test1" and there is an error in browser: "ERRTOOMANY_REDIRECTS"
To fix this issue I can suggest do not to store redirects if them have the same urls. Maybe I am wrong, but as I can see it is not good behaviour out of the box.
With the redirect when node exists it is next to impossible to track if a page that is being redirected redirects to another page that redirects back.. The pages are not the same so for now that is indeed not something I can fix.
Error "ERR_TOO_MANY_REDIRECTS" in browser
Hi!
I faced with issue "ERRTOOMANY_REDIRECTS" in browser when I tried to open page.
I am using umbraco 10.8.1 and SEOChecker 10.0.5.
After investigation I found out the following: this behaviour was caused by enabling "RedirectWhenNodeExists" setting in RedirectConfig ("Redirect when node exists" setting in backoffice). This setting allows SEOChecker.Providers.UrlProviders.UrlRewriteRedirectsProvider.RewriteUrl to rewrite Url, but in some cases it creates an endless loop of redirects.
Steps to reproduce:
To fix this issue I can suggest do not to store redirects if them have the same urls. Maybe I am wrong, but as I can see it is not good behaviour out of the box.
Thanks!
Hi,
You need to make sure a page can't redirect to a page that will redirect to the previous page.
Best, Richard
Hi, thanks for the response!
Do you mean I need do this in backoffice manually?
Yes indeed filter on the url that gives you a list of the redirects to/from the page
So correct me if I wrong, this behaviour is correct behaviour and you willl not do fix to resolve this problem?
Best regards!
With the redirect when node exists it is next to impossible to track if a page that is being redirected redirects to another page that redirects back.. The pages are not the same so for now that is indeed not something I can fix.
Best,
Richard
is working on a reply...