Skip to content

Commit

Permalink
Merge pull request #124 from hmrc/DAC6-3348
Browse files Browse the repository at this point in the history
DAC6-3384 | Removed backlink on information sent page
  • Loading branch information
Vishakha1903 authored Oct 17, 2024
2 parents e2c12fd + 5a17b1f commit 22c8b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/views/InformationSentView.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@

@this(
layout: templates.Layout,
link: components.Link,
govukBackLink: GovukBackLink
link: components.Link
)

@()(implicit request: Request[_], messages: Messages)

@layout(pageTitle = titleNoForm(messages("informationSent.title")), backLink = controllers.addFinancialInstitution.routes.FinancialInstitutionAddedConfirmationController.onPageLoad.url) {
@layout(pageTitle = titleNoForm(messages("informationSent.title")), showBackLink = false) {

<h1 class="govuk-heading-l">@messages("informationSent.heading")</h1>

Expand Down
3 changes: 0 additions & 3 deletions test/controllers/InformationSentControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ class InformationSentControllerSpec extends SpecBase {

status(result) mustEqual OK
contentAsString(result) mustEqual view()(request, messages(application)).toString

val fiAddedUrl = addFinancialInstitution.routes.FinancialInstitutionAddedConfirmationController.onPageLoad.url
contentAsString(result) must include(s"""<a href="$fiAddedUrl" class="govuk-back-link js-visible">Back</a>""")
}
}
}
Expand Down

0 comments on commit 22c8b8b

Please sign in to comment.