We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff750a commit 4d57b4bCopy full SHA for 4d57b4b
readthedocs/builds/models.py
@@ -277,7 +277,9 @@ def get_absolute_url(self):
277
# TODO: We can integrate them into the resolver
278
# but this is much simpler to handle since we only link them a couple places for now
279
if self.type == EXTERNAL:
280
- url = f"{settings.EXTERNAL_VERSION_URL}/html/{self.project.slug}/{self.slug}/"
+ url = f'{settings.EXTERNAL_VERSION_URL}/html/' \
281
+ f'{self.project.slug}/{self.slug}/'
282
+ # Django's static file serving doesn't automatically append index.html
283
if settings.DEBUG:
284
url += 'index.html'
285
return url
0 commit comments