Former Url Circular url

Jay Asbury asked on March 15, 2024 14:30

If a content editor has former urls turned on and edits twice to cause a former url of url a to go to b and then changes so now url equals a, a circular redirect is created. Please detect this situation and alert or just handle so we do not get the too many redirects error in a browser. Kentico 13 hotfix 130. I know the former Urls app allows manipulation of these but the creation of formal when they save a url slug change neds to be checked so circular does not get generated in the first place.

Recent Answers


Brenden Kehren answered on March 15, 2024 14:45

The solution is to go into the Former URL application and find the one that's causing a problem and delete it. The system looks for a conflict based on the Current Url Path and not the Former URL Path because you can add aliases on any page you want that could be the same page being referenced on another page.

There is a very slim chance anything will change in v13 with this as it's not actively being developed against for new features.

0 votesVote for this answer Mark as a Correct answer

Jay Asbury answered on March 15, 2024 15:05

Ok. Thanks. i guess I can create a scheduled task to rip out circulars from both. Good point on alternate urls too.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 19, 2024 09:16

What routing type and development model are you using? Are you able to reproduce the issue using e.g. the sample Dancing Goat project?
I just tried it using the Dancing Goat Core project and it works fine. I have a page with URL slug: /contacts
I changed the slug to be /contactsX
Former URL was created.
Then, I changed the slug back to /contacts
Second former URL is created.

Using incognito window - I am not getting a redirect loop, the page is displayed just fine.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.