From bb7bb4d6751ecce67ba274a32100406b951f9b90 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Mon, 11 Dec 2017 11:48:05 -0800 Subject: [PATCH] Pass more data into the redirects. (#3388) This will let us force a CNAME in the base-level `foo.rtd.org` redirect case. Refs #1916 --- readthedocs/projects/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py index 4bd6e959ba8..de65e746827 100644 --- a/readthedocs/projects/tasks.py +++ b/readthedocs/projects/tasks.py @@ -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+')