Skip to content

Commit

Permalink
Merge pull request #9582 from alphagov/content-modelling/667-argument…
Browse files Browse the repository at this point in the history
…error-when-using-back-button-on-the-edit-form

(667) Fix back button on review links page
  • Loading branch information
pezholio authored Nov 5, 2024
2 parents cc029dc + c558b17 commit 49c1491
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
<% content_for :title_margin_bottom, 4 %>
<% content_for :back_link do %>
<%= render "govuk_publishing_components/components/back_link", {
href: content_block_manager.new_content_block_manager_content_block_edition_path(@content_block_document.id),
href: content_block_manager.new_content_block_manager_content_block_document_edition_path(@content_block_document),
} %>
<% end %>

Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@
Then("I should see a back link to the edit page") do
expect(page).to have_link(
"Back",
href: content_block_manager.new_content_block_manager_content_block_edition_path(@content_block.document),
href: content_block_manager.new_content_block_manager_content_block_document_edition_path(@content_block.document),
)
end

0 comments on commit 49c1491

Please sign in to comment.