Class HTML::Pipeline::AbsoluteSourceFilter
In: lib/html/pipeline/absolute_source_filter.rb
Parent: Filter

Methods

Public Instance methods

HTML Filter for replacing relative and root relative image URLs with fully qualified URLs

This is useful if an image is root relative but should really be going through a cdn, or if the content for the page assumes the host is known i.e. scraped webpages and some RSS feeds.

Context options:

  :image_base_url - Base URL for image host for root relative src.
  :image_subpage_url - For relative src.

This filter does not write additional information to the context. This filter would need to be run before CamoFilter.

Private: the base url you want to use

Private: the relative url you want to use

[Validate]