<%
  links = [
    {
      text: 'Step by step publisher',
      href: step_by_step_pages_path
    },
    {
      text: @step_by_step_page.title,
      href: @step_by_step_page
    },
    {
      text: 'Edit step'
    }
  ]
%>

<% content_for :breadcrumbs do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: @step_by_step_page
  } %>
<% end %>

<%= render 'shared/steps/page_title', links: links %>

<%= render 'shared/steps/heading',
  step_nav: @step_by_step_page.title,
  action: 'Edit step'
%>

<%= form_for @step, url: step_by_step_page_step_path(@step.step_by_step_page_id, @step) do |form| %>
  <%= render "form", step: @step, form: form %>
<% end %>

<%
  links = [
    {
      text: 'Step by step publisher',
      href: step_by_step_pages_path
    },
    {
      text: @step_by_step_page.title,
      href: @step_by_step_page
    },
    {
      text: 'Edit step'
    }
  ]
%>

<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: @step_by_step_page
  } %>
<% end %>

<%= render 'shared/steps/page_title', links: links %>

<%= render 'shared/steps/heading',
  step_nav: @step_by_step_page.title,
  action: 'Edit step'
%>

<%= form_for @step, url: step_by_step_page_step_path(@step.step_by_step_page_id, @step) do |form| %>
  <%= render "form", step: @step, form: form %>
<% end %>

Use the back_link block for back link
Use the back_link block for back link
