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 7383ada commit cff750aCopy full SHA for cff750a
readthedocs/builds/models.py
@@ -277,7 +277,10 @@ 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
- return f"{settings.EXTERNAL_VERSION_URL}/html/{self.project.slug}/{self.slug}/index.html"
+ url = f"{settings.EXTERNAL_VERSION_URL}/html/{self.project.slug}/{self.slug}/"
281
+ if settings.DEBUG:
282
+ url += 'index.html'
283
+ return url
284
if not self.built and not self.uploaded:
285
return reverse(
286
'project_version_detail',
0 commit comments