```ruby
class HtmlVersionsController < PublicFacingController
  layout 'detailed-guidance'

  before_filter :find_publication
  before_filter :find_supporting_page

  include CacheControlHelper
  include PublicDocumentRoutesHelper

  def index
    redirect_to publication_attachment_path(@publication.document, @publication.html_version)
  end

  def show
    @document = @publication
    @html_version = @publication.html_version
  end

  private

  def find_publication
    unless @publication = Publication.published_as(params[:publication_id])
      render text: "Not found", status: :not_found
    end
  end

  def find_supporting_page
    unless (@publication.html_version)
      render text: "Not found", status: :not_found
    end
  end

  def analytics_format
    :publication
  end
end
```

Rename mistakenly named method to show intent
user
```ruby
class HtmlVersionsController < PublicFacingController
  layout 'detailed-guidance'

  before_filter :find_publication
  before_filter :find_html_version

  include CacheControlHelper
  include PublicDocumentRoutesHelper

  def index
    redirect_to publication_attachment_path(@publication.document, @publication.html_version)
  end

  def show
    @document = @publication
    @html_version = @publication.html_version
  end

  private

  def find_publication
    unless @publication = Publication.published_as(params[:publication_id])
      render text: "Not found", status: :not_found
    end
  end

  def find_html_version
    unless (@publication.html_version)
      render text: "Not found", status: :not_found
    end
  end

  def analytics_format
    :publication
  end
end
```
assistant