Skip to content

Commit c9c2e36

Browse files
committed
Handle subdomain case in single version middleware
1 parent e1d4fde commit c9c2e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def process_request(self, request):
150150
# Let 404 be handled further up stack.
151151
return None
152152

153-
if getattr(proj, 'single_version', False):
153+
if getattr(proj, 'single_version', False) and not getattr(settings, 'USE_SUBDOMAIN', False):
154154
request.urlconf = 'readthedocs.core.single_version_urls'
155155
# Logging
156156
host = request.get_host()

0 commit comments

Comments
 (0)