Skip to content

Commit

Permalink
fix: check for url presence before trying to append to it (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen authored Feb 27, 2024
1 parent c94cd33 commit 9de191c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/graphiti/util/link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9de191c

Please # to comment.