Skip to content

Commit 7ab3ac4

Browse files
authored
Fix when docs path has no trailing slash (boostorg#1941)
1 parent 0cef7cb commit 7ab3ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,6 @@ def get_content(self, content_path):
570570
if not result and (result := self.get_from_s3(content_path)):
571571
self.save_to_database(cache_key, result)
572572

573-
result["redirect"] = get_meta_redirect_from_html(result["content"])
574-
575573
if result is None:
576574
logger.info(
577575
"get_content_from_s3_view_no_valid_object",
@@ -580,6 +578,8 @@ def get_content(self, content_path):
580578
)
581579
raise ContentNotFoundException("Content not found")
582580

581+
result["redirect"] = get_meta_redirect_from_html(result["content"])
582+
583583
return result
584584

585585
@staticmethod

0 commit comments

Comments
 (0)