Sha256: ddca39e13e7e44af24715e44e4468f6914357793e9900e84b386498b5cf50689

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module SiteHealth
  # Checks if page is a redirect (works with HTTP 3XX status and HTML body redirects)
  class Redirect < Checker
    name 'redirect'

    protected

    def check
      add_data(redirect: page.redirect?)
    end
  end

  SiteHealth.register_checker(Redirect)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
site_health-0.2.0 lib/site_health/checkers/redirect.rb