Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to_s on site.url before attempting to concatenate strings #6253

Merged
merged 2 commits into from Jul 30, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/jekyll/filters/url_filters.rb
Expand Up @@ -13,7 +13,7 @@ def absolute_url(input)
return input if Addressable::URI.parse(input).absolute?
site = @context.registers[:site]
return relative_url(input).to_s if site.config["url"].nil?
Addressable::URI.parse(site.config["url"] + relative_url(input)).normalize.to_s
Addressable::URI.parse(site.config["url"].to_s + relative_url(input)).normalize.to_s
end

# Produces a URL relative to the domain root based on site.baseurl.
Expand Down