Hello,
We are running OJS 3.5.0.3 with PostgreSQL and nginx, and we’ve been alerted by the Google Scholar indexing system that some article URLs are returning an infinite redirect loop to the crawler.
The issue appears to affect URLs in the format:
/en/article/view/<id>
Examples that trigger the redirect loop:
- https://revistas.usp.br/rieb/en/article/view/70039
- https://revistas.usp.br/rta/en/article/view/64182
- https://revistas.usp.br/revusp/en/article/view/26092
- https://revistas.usp.br/cadernosdecampo/en/article/view/50063
However, the following URLs seem to work normally:
- https://revistas.usp.br/esse/article/view/229368
- https://revistas.usp.br/rta/article/view/64182
- https://revistas.usp.br/sa/en/article/view/100118/0
- https://revistas.usp.br/gestaodeprojetos/pt_BR/article/view/80959/0
- https://revistas.usp.br/jistem/en/article/download/84670/87384/118439
When testing with:
curl -I -L https://revistas.usp.br/rieb/en/article/view/70039
we can observe the infinite redirect behavior.
From the Scholar team’s feedback, this is typically caused by requiring cookies and redirecting to the same URL when no cookie is presented (which is the case for crawlers).
Questions:
- Has anyone encountered this behavior specifically in OJS 3.5.x?
- Is there a recommended way in OJS to bypass or avoid cookie requirements for crawlers (e.g., Googlebot / Scholar)?
- Could this be related to locale handling?
Any guidance on where in OJS (or server configuration) this behavior is typically controlled would be appreciated.
Thank you.
Tarcisio Pereira