From 9de191cfdb3ac03a733eecfe711883b113814fbc Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Tue, 27 Feb 2024 15:16:20 -0600 Subject: [PATCH] fix: check for url presence before trying to append to it (#464) --- lib/graphiti/util/link.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/graphiti/util/link.rb b/lib/graphiti/util/link.rb index 49f8332a..9390a2eb 100644 --- a/lib/graphiti/util/link.rb +++ b/lib/graphiti/util/link.rb @@ -48,6 +48,7 @@ def raw_url def on_demand_links(url) return url unless Graphiti.config.links_on_demand + return unless url url << if url.include?("?") "&links=true"