We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7477fc commit b086319Copy full SHA for b086319
readthedocs/core/middleware.py
@@ -150,8 +150,8 @@ def process_request(self, request):
150
# Let 404 be handled further up stack.
151
return None
152
153
- if (getattr(proj, 'single_version', False)
154
- and not getattr(settings, 'USE_SUBDOMAIN', False)):
+ if (getattr(proj, 'single_version', False) and
+ not getattr(settings, 'USE_SUBDOMAIN', False)):
155
request.urlconf = 'readthedocs.core.single_version_urls'
156
# Logging
157
host = request.get_host()
0 commit comments