diff --git a/ds_caselaw_editor_ui/templates/includes/judgment/toolbar/corrected_ncn_notification.html b/ds_caselaw_editor_ui/templates/includes/judgment/toolbar/corrected_ncn_notification.html index d5e7c67ac..459b733ca 100644 --- a/ds_caselaw_editor_ui/templates/includes/judgment/toolbar/corrected_ncn_notification.html +++ b/ds_caselaw_editor_ui/templates/includes/judgment/toolbar/corrected_ncn_notification.html @@ -10,13 +10,13 @@

Document URI/NCN mismatch

- This document is located at /{{ judgment.uri }} but has an NCN of {{ judgment.best_human_identifier }} + This document is currently located at /{{ judgment.uri }} but based on its NCN should be at /{{ corrected_ncn_url }}

diff --git a/judgments/tests/test_document_edit.py b/judgments/tests/test_document_edit.py index fbd0bb81e..934aefe6a 100644 --- a/judgments/tests/test_document_edit.py +++ b/judgments/tests/test_document_edit.py @@ -107,8 +107,8 @@ def test_bad_ncn_has_banner(self, linked_document_uri, mock_judgment): root = lxml.html.fromstring(response.content) message = lxml.html.tostring(root.xpath("//div[@class='page-notification--warning']")[0]) assert b"Document URI/NCN mismatch" in message - assert b'This document is located at ' in message - assert b'but has an NCN of ' in message + assert b"This document is currently located at /uksc/1234/123" in message + assert b"but based on its NCN should be at /uksc/1234/999" in message assert b'' in message @patch("judgments.views.judgment_edit.api_client")