Skip to content

Commit 2902f81

Browse files
authored
CCM-9708 - fix broken back link on preview letter page (#417)
1 parent 8d6c460 commit 2902f81

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

frontend/src/__tests__/components/organisms/__snapshots__/PreviewLetterTemplate.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`PreviewLetterTemplate component matches snapshot 1`] = `
77
>
88
<a
99
class="nhsuk-back-link__link"
10-
href="/templates/manage-templates"
10+
href="/templates/message-templates"
1111
id="back-link"
1212
>
1313
<svg
@@ -144,7 +144,7 @@ exports[`PreviewLetterTemplate component matches snapshot 1`] = `
144144
</a>
145145
<p>
146146
<a
147-
href="/manage-templates"
147+
href="/message-templates"
148148
>
149149
Back to all templates
150150
</a>
@@ -162,7 +162,7 @@ exports[`PreviewLetterTemplate component matches snapshot when template status i
162162
>
163163
<a
164164
class="nhsuk-back-link__link"
165-
href="/templates/manage-templates"
165+
href="/templates/message-templates"
166166
id="back-link"
167167
>
168168
<svg
@@ -299,7 +299,7 @@ exports[`PreviewLetterTemplate component matches snapshot when template status i
299299
</a>
300300
<p>
301301
<a
302-
href="/manage-templates"
302+
href="/message-templates"
303303
>
304304
Back to all templates
305305
</a>

frontend/src/components/organisms/PreviewLetterTemplate/PreviewLetterTemplate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function PreviewLetterTemplate({
1717

1818
return (
1919
<>
20-
<BackLink href={`${basePath}/manage-templates`} id='back-link'>
20+
<BackLink href={`${basePath}/message-templates`} id='back-link'>
2121
{backLinkText}
2222
</BackLink>
2323
<NHSNotifyMain>
@@ -32,7 +32,7 @@ export function PreviewLetterTemplate({
3232
{buttonText}
3333
</NHSNotifyButton>
3434
<p>
35-
<Link href='/manage-templates'>{backLinkText}</Link>
35+
<Link href='/message-templates'>{backLinkText}</Link>
3636
</p>
3737
</div>
3838
</div>

0 commit comments

Comments
 (0)