diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html index 6a700b393..9390e1b16 100644 --- a/src/registrar/templates/domain_detail.html +++ b/src/registrar/templates/domain_detail.html @@ -27,7 +27,7 @@
- {% url 'domain-nameservers' pk=domain.id as url %} + {% url 'domain-dns-nameservers' pk=domain.id as url %} {% if domain.nameservers|length > 0 %} {% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url %} {% else %} diff --git a/src/registrar/templates/domain_dns.html b/src/registrar/templates/domain_dns.html index 9b3b7500b..c793df5e9 100644 --- a/src/registrar/templates/domain_dns.html +++ b/src/registrar/templates/domain_dns.html @@ -11,7 +11,7 @@

You can enter your name services, as well as other DNS-related information, in the following sections:

- {% url 'domain-nameservers' pk=domain.id as url %} + {% url 'domain-dns-nameservers' pk=domain.id as url %}

DNS name servers

{% url 'domain-subdomains' pk=domain.id as url %} diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index c78d3c7fa..c49ec8f3f 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -1098,7 +1098,7 @@ class TestDomainPermissions(TestWithDomainPermissions): "domain", "domain-users", "domain-users-add", - "domain-nameservers", + "domain-dns-nameservers", "domain-org-name-address", "domain-authorizing-official", "domain-your-contact-information", @@ -1119,7 +1119,7 @@ class TestDomainPermissions(TestWithDomainPermissions): "domain", "domain-users", "domain-users-add", - "domain-nameservers", + "domain-dns-nameservers", "domain-org-name-address", "domain-authorizing-official", "domain-your-contact-information", @@ -1308,7 +1308,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest): def test_domain_nameservers(self): """Can load domain's nameservers page.""" page = self.client.get( - reverse("domain-nameservers", kwargs={"pk": self.domain.id}) + reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id}) ) self.assertContains(page, "Domain name servers") @@ -1319,7 +1319,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest): Uses self.app WebTest because we need to interact with forms. """ nameservers_page = self.app.get( - reverse("domain-nameservers", kwargs={"pk": self.domain.id}) + reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id}) ) session_id = self.app.cookies[settings.SESSION_COOKIE_NAME] self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) @@ -1329,7 +1329,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest): self.assertEqual(result.status_code, 302) self.assertEqual( result["Location"], - reverse("domain-nameservers", kwargs={"pk": self.domain.id}), + reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id}), ) self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) page = result.follow() @@ -1342,7 +1342,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest): Uses self.app WebTest because we need to interact with forms. """ nameservers_page = self.app.get( - reverse("domain-nameservers", kwargs={"pk": self.domain.id}) + reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id}) ) session_id = self.app.cookies[settings.SESSION_COOKIE_NAME] self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py index df5c1d9bf..d19d3401d 100644 --- a/src/registrar/views/domain.py +++ b/src/registrar/views/domain.py @@ -172,7 +172,7 @@ class DomainNameserversView(DomainPermissionView, FormMixin): def get_success_url(self): """Redirect to the nameservers page for the domain.""" - return reverse("domain-nameservers", kwargs={"pk": self.object.pk}) + return reverse("domain-dns-nameservers", kwargs={"pk": self.object.pk}) def get_context_data(self, **kwargs): """Adjust context from FormMixin for formsets."""