diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index bbdb5370..141a526d 100644
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@ -570,7 +570,7 @@ def content_to_comment_html(content)
else
text = %(#{text})
end
- elsif url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s
+ elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s
text = %(#{text})
end
end