mitodl / ol-infrastructure

Infrastructure automation code for use by MIT Open Learning
BSD 3-Clause "New" or "Revised" License
46 stars 4 forks source link

OCW URLs return "The page isn’t redirecting properly" instead of 404 #715

Closed pdpinch closed 2 years ago

pdpinch commented 2 years ago

In some cases, when we expect a 404 response we are getting (in Firefox):

The page isn’t redirecting properly

An error occurred during a connection to ocwnext.odl.mit.edu.

This problem can sometimes be caused by disabling or refusing to accept cookies.

We are planning to fix these URLs, but it's still unexpected and confusing that they don't return 404.

Some examples:

  1. https://ocwnext.odl.mit.edu/courses/18-100c-real-analysis-fall-2012/pages/index.htm (link 18.100C Real Analysis on https://ocwnext.odl.mit.edu/courses/18-s997-high-dimensional-statistics-spring-2015/pages/syllabus/ )
  2. https://ocwnext.odl.mit.edu/courses/18-700-linear-algebra-fall-2013/pages/index.htm (link 18.700 Linear Algebra on https://ocwnext.odl.mit.edu/courses/18-s997-high-dimensional-statistics-spring-2015/pages/syllabus/ )
shaidar commented 2 years ago

@pdpinch I think I found a decent workaround to address this. Can you try it out here and let me know whether to go ahead and deploy across all envs

pdpinch commented 2 years ago

This is working in production now.