Pass more data into the redirects.
This will let us force a CNAME in the base-level `foo.rtd.org` redirect case.
Refs
@@ -958,6 +958,8 @@ def update_static_metadata(project_pk, path=None):
'language': project.language,
'languages': list(languages),
'single_version': project.single_version,
+ 'subdomain': project.subdomain(),
+ 'canonical_url': project.get_canonical_url(),
}
try:
fh = open(path, 'w+')
