From 48c3a8207858a3df68470d6752e47fd973350f36 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 23 May 2020 13:29:45 +0000 Subject: [PATCH] Use base url when generating cover URLs --- src/library.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library.cr b/src/library.cr index ef0fb90..0af92ac 100644 --- a/src/library.cr +++ b/src/library.cr @@ -57,7 +57,7 @@ class Entry end def cover_url - url = "/api/page/#{@title_id}/#{@id}/1" + url = "#{Config.current.base_url}api/page/#{@title_id}/#{@id}/1" TitleInfo.new @book.dir do |info| info_url = info.entry_cover_url[@title]? unless info_url.nil? || info_url.empty?