IMAGINARY / imaginary-web

Imaginary website (Drupal 7)
GNU General Public License v2.0
3 stars 0 forks source link

Redirect Loop in Uruguay event page #97

Closed elondaits closed 9 years ago

elondaits commented 9 years ago

When opening

http://imaginary.org/event/imaginary-uruguay-un-viaje-por-la-matematica

the system informs of a redirect loop.

andreasdanielmatt commented 9 years ago

good point. How can we avoid this? I think we have a mess connected to the English translation (which is still in Spanish) of the IMAGINARY Uruguay event site. I added a redirection from imaginary.org/uruguay to the Spanish page (maybe this caused the problem?).

elondaits commented 9 years ago

It's fixed now.

The problem was that:

so, when accessing http://imaginary.org/event/imaginary-uruguay-un-viaje-por-la-matematica the following happened:

  1. The URL redirect module redirected to node/892
  2. The node itself, when opened, redirects to its canonical URL generated by authopath, which is event/imaginary-uruguay-un-viaje-por-la-matematica
  3. Go back to 1.

Creating URL redirects is a bit dangerous because of things like this. To avoid problems one has to make sure that the redirect doesn't duplicate any existing URL, as it can replace it / block it or generate this kind of loops.

In this case to solve it I just removed the URL redirect, as it wasn't needed because the auto-path was identical and enough.