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 0cef7cb commit 7ab3ac4Copy full SHA for 7ab3ac4
core/views.py
@@ -570,8 +570,6 @@ def get_content(self, content_path):
570
if not result and (result := self.get_from_s3(content_path)):
571
self.save_to_database(cache_key, result)
572
573
- result["redirect"] = get_meta_redirect_from_html(result["content"])
574
-
575
if result is None:
576
logger.info(
577
"get_content_from_s3_view_no_valid_object",
@@ -580,6 +578,8 @@ def get_content(self, content_path):
580
578
)
581
579
raise ContentNotFoundException("Content not found")
582
+ result["redirect"] = get_meta_redirect_from_html(result["content"])
+
583
return result
584
585
@staticmethod
0 commit comments