Skip to content

Commit

Permalink
Pass more data into the redirects. (#3388)
Browse files Browse the repository at this point in the history
This will let us force a CNAME in the base-level `foo.rtd.org` redirect case.

Refs #1916
  • Loading branch information
ericholscher authored and agjohnson committed Dec 11, 2017
1 parent d74e2e1 commit bb7bb4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readthedocs/projects/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+')
Expand Down

0 comments on commit bb7bb4d

Please sign in to comment.