def show
      if should_skip_to_first_child?
        redirect_to refinery.url_for(first_live_child.url), status: 301 and return
      elsif page.link_url.present?
        redirect_to page.link_url, status: 301 and return
      elsif should_redirect_to_friendly_url?
        redirect_to refinery.url_for(page.url), status: 301 and return
      end

      render_with_templates?
    end
def show
      if should_skip_to_first_child?
        redirect_to refinery.url_for(first_live_child.url), status: 301 and return
      elsif page.link_url.present?
        redirect_to page.link_url, status: 301 and return
      elsif should_redirect_to_friendly_url?
        redirect_to refinery.url_for(page.url), status: 301 and return
      end

      render_with_templates?
    end
This action can be accessed normally, or as nested pages.
 Assuming a page named "mission" that is a child of "about",
 you can access the pages with the following URLs:

   GET /pages/about
   GET /about

   GET /pages/mission
   GET /about/mission