You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the way we get the project.slug from the request object (set by the SubdomainMiddleware), redirects instances for subprojects are never catched.
project is the superproject instead of the subproject, and all the redirect instanced defined in the subproject are completely omited.
This is strongly related to #5557. We need to refactor the middleware and set the subproject.slug into the request object to make these things to work properly.
The text was updated successfully, but these errors were encountered:
Looks like the linked code is prior to proxito, we now catch the redirects from the subproject, but not as users would expect, tracking that problem in #10049.
Due to the way we get the
project.slug
from therequest
object (set by theSubdomainMiddleware
), redirects instances for subprojects are never catched.At this point,
readthedocs.org/readthedocs/redirects/utils.py
Lines 86 to 88 in c91b332
project
is the superproject instead of the subproject, and all the redirect instanced defined in the subproject are completely omited.This is strongly related to #5557. We need to refactor the middleware and set the
subproject.slug
into therequest
object to make these things to work properly.The text was updated successfully, but these errors were encountered: