Repository: cisagov/manage.get.gov

Issue:
Change URL path for domain requests from "register" to "request"
### Issue description

Currently, the "Request a domain" process involves a URL subdirectory named /register. This should be changed everywhere so that it is not implied that a user is actually registering a domain, but is rather just requesting a domain.



![Image](https://github.com/cisagov/manage.get.gov/assets/62573986/5f0ce4f9-390c-423e-8abd-84632a91c4bc)



### Acceptance criteria

- [ ] When Requesting a new domain, the user sees the URL /request/dotgov_domain.
- [ ] Ensure that any and all links or buttons targeting these pages still work.
- [ ] pa11y scans links and other sections may need updates as well to accomodate

### Additional context

Per conversation with Michelle, late Oct/early Nov.

### Links to other issues

_No response_


Discussion:
!!!!!!
This involves changing things in manage.get and in beta.get. 2 PRs
!!!!!!

Resolving patch:
diff --git a/src/registrar/config/urls.py b/src/registrar/config/urls.py
--- a/src/registrar/config/urls.py
+++ b/src/registrar/config/urls.py
@@ -76,7 +76,7 @@
     ),
     path("health/", views.health),
     path("openid/", include("djangooidc.urls")),
-    path("register/", include((application_urls, APPLICATION_NAMESPACE))),
+    path("request/", include((application_urls, APPLICATION_NAMESPACE))),
     path("api/v1/available/", available, name="available"),
     path("api/v1/get-report/current-federal", get_current_federal, name="get-current-federal"),
     path("api/v1/get-report/current-full", get_current_full, name="get-current-full"),
diff --git a/src/registrar/views/application.py b/src/registrar/views/application.py
--- a/src/registrar/views/application.py
+++ b/src/registrar/views/application.py
@@ -73,7 +73,7 @@ class ApplicationWizard(ApplicationWizardPermissionView, TemplateView):
     URL_NAMESPACE = "application"
     # name for accessing /application/<id>/edit
     EDIT_URL_NAME = "edit-application"
-    NEW_URL_NAME = "/register/"
+    NEW_URL_NAME = "/request/"
     # We need to pass our human-readable step titles as context to the templates.
     TITLES = {
         Step.ORGANIZATION_TYPE: _("Type of organization"),


Test patch:
diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py
--- a/src/registrar/tests/test_views.py
+++ b/src/registrar/tests/test_views.py
@@ -54,9 +54,9 @@ def test_home_page(self):
 
     def test_application_form_not_logged_in(self):
         """Application form not accessible without a logged-in user."""
-        response = self.client.get("/register/")
+        response = self.client.get("/request/")
         self.assertEqual(response.status_code, 302)
-        self.assertIn("/login?next=/register/", response.headers["Location"])
+        self.assertIn("/login?next=/request/", response.headers["Location"])
 
 
 class TestWithUser(MockEppLib):
@@ -107,7 +107,7 @@ def test_home_lists_domains(self):
         role.delete()
 
     def test_application_form_view(self):
-        response = self.client.get("/register/", follow=True)
+        response = self.client.get("/request/", follow=True)
         self.assertContains(
             response,
             "You’re about to start your .gov domain request.",
@@ -121,7 +121,7 @@ def test_domain_application_form_with_ineligible_user(self):
         self.user.save()
 
         with less_console_noise():
-            response = self.client.get("/register/", follow=True)
+            response = self.client.get("/request/", follow=True)
             print(response.status_code)
             self.assertEqual(response.status_code, 403)
 
@@ -155,7 +155,7 @@ def test_application_form_intro_is_skipped_when_edit_access(self):
         self.assertEqual(detail_page.status_code, 302)
         # You can access the 'Location' header to get the redirect URL
         redirect_url = detail_page.url
-        self.assertEqual(redirect_url, "/register/organization_type/")
+        self.assertEqual(redirect_url, "/request/organization_type/")
 
     def test_application_form_empty_submit(self):
         """Tests empty submit on the first page after the acknowledgement page"""
@@ -249,7 +249,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(type_result.status_code, 302)
-        self.assertEqual(type_result["Location"], "/register/organization_federal/")
+        self.assertEqual(type_result["Location"], "/request/organization_federal/")
         num_pages_tested += 1
 
         # ---- FEDERAL BRANCH PAGE  ----
@@ -269,7 +269,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(federal_result.status_code, 302)
-        self.assertEqual(federal_result["Location"], "/register/organization_contact/")
+        self.assertEqual(federal_result["Location"], "/request/organization_contact/")
         num_pages_tested += 1
 
         # ---- ORG CONTACT PAGE  ----
@@ -302,7 +302,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(org_contact_result.status_code, 302)
-        self.assertEqual(org_contact_result["Location"], "/register/authorizing_official/")
+        self.assertEqual(org_contact_result["Location"], "/request/authorizing_official/")
         num_pages_tested += 1
 
         # ---- AUTHORIZING OFFICIAL PAGE  ----
@@ -327,7 +327,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(ao_result.status_code, 302)
-        self.assertEqual(ao_result["Location"], "/register/current_sites/")
+        self.assertEqual(ao_result["Location"], "/request/current_sites/")
         num_pages_tested += 1
 
         # ---- CURRENT SITES PAGE  ----
@@ -349,7 +349,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(current_sites_result.status_code, 302)
-        self.assertEqual(current_sites_result["Location"], "/register/dotgov_domain/")
+        self.assertEqual(current_sites_result["Location"], "/request/dotgov_domain/")
         num_pages_tested += 1
 
         # ---- DOTGOV DOMAIN PAGE  ----
@@ -369,7 +369,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(dotgov_result.status_code, 302)
-        self.assertEqual(dotgov_result["Location"], "/register/purpose/")
+        self.assertEqual(dotgov_result["Location"], "/request/purpose/")
         num_pages_tested += 1
 
         # ---- PURPOSE PAGE  ----
@@ -388,7 +388,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(purpose_result.status_code, 302)
-        self.assertEqual(purpose_result["Location"], "/register/your_contact/")
+        self.assertEqual(purpose_result["Location"], "/request/your_contact/")
         num_pages_tested += 1
 
         # ---- YOUR CONTACT INFO PAGE  ----
@@ -416,7 +416,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(your_contact_result.status_code, 302)
-        self.assertEqual(your_contact_result["Location"], "/register/other_contacts/")
+        self.assertEqual(your_contact_result["Location"], "/request/other_contacts/")
         num_pages_tested += 1
 
         # ---- OTHER CONTACTS PAGE  ----
@@ -454,7 +454,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(other_contacts_result.status_code, 302)
-        self.assertEqual(other_contacts_result["Location"], "/register/anything_else/")
+        self.assertEqual(other_contacts_result["Location"], "/request/anything_else/")
         num_pages_tested += 1
 
         # ---- ANYTHING ELSE PAGE  ----
@@ -474,7 +474,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(anything_else_result.status_code, 302)
-        self.assertEqual(anything_else_result["Location"], "/register/requirements/")
+        self.assertEqual(anything_else_result["Location"], "/request/requirements/")
         num_pages_tested += 1
 
         # ---- REQUIREMENTS PAGE  ----
@@ -494,7 +494,7 @@ def test_application_form_submission(self):
         # the post request should return a redirect to the next form in
         # the application
         self.assertEqual(requirements_result.status_code, 302)
-        self.assertEqual(requirements_result["Location"], "/register/review/")
+        self.assertEqual(requirements_result["Location"], "/request/review/")
         num_pages_tested += 1
 
         # ---- REVIEW AND FINSIHED PAGES  ----
@@ -548,7 +548,7 @@ def test_application_form_submission(self):
             review_result = review_form.submit()
 
         self.assertEqual(review_result.status_code, 302)
-        self.assertEqual(review_result["Location"], "/register/finished/")
+        self.assertEqual(review_result["Location"], "/request/finished/")
         num_pages_tested += 1
 
         # following this redirect is a GET request, so include the cookie
@@ -629,7 +629,7 @@ def test_application_form_conditional_federal(self):
         # the post request should return a redirect to the federal branch
         # question
         self.assertEqual(type_result.status_code, 302)
-        self.assertEqual(type_result["Location"], "/register/organization_federal/")
+        self.assertEqual(type_result["Location"], "/request/organization_federal/")
 
         # and the step label should appear in the sidebar of the resulting page
         # but the step label for the elections page should not appear
@@ -646,7 +646,7 @@ def test_application_form_conditional_federal(self):
         # the post request should return a redirect to the contact
         # question
         self.assertEqual(federal_result.status_code, 302)
-        self.assertEqual(federal_result["Location"], "/register/organization_contact/")
+        self.assertEqual(federal_result["Location"], "/request/organization_contact/")
         self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
         contact_page = federal_result.follow()
         self.assertContains(contact_page, "Federal agency")
@@ -683,7 +683,7 @@ def test_application_form_conditional_elections(self):
 
         # the post request should return a redirect to the elections question
         self.assertEqual(type_result.status_code, 302)
-        self.assertEqual(type_result["Location"], "/register/organization_election/")
+        self.assertEqual(type_result["Location"], "/request/organization_election/")
 
         # and the step label should appear in the sidebar of the resulting page
         # but the step label for the elections page should not appear
@@ -700,7 +700,7 @@ def test_application_form_conditional_elections(self):
         # the post request should return a redirect to the contact
         # question
         self.assertEqual(election_result.status_code, 302)
-        self.assertEqual(election_result["Location"], "/register/organization_contact/")
+        self.assertEqual(election_result["Location"], "/request/organization_contact/")
         self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
         contact_page = election_result.follow()
         self.assertNotContains(contact_page, "Federal agency")
@@ -738,7 +738,7 @@ def test_application_form_section_skipping(self):
 
         # Should be a link to the organization_federal page
         self.assertGreater(
-            len(new_page.html.find_all("a", href="/register/organization_federal/")),
+            len(new_page.html.find_all("a", href="/request/organization_federal/")),
             0,
         )
 
@@ -785,7 +785,7 @@ def test_application_form_nonfederal(self):
         # the post request should return a redirect to the
         # about your organization page if it was successful.
         self.assertEqual(contact_result.status_code, 302)
-        self.assertEqual(contact_result["Location"], "/register/about_your_organization/")
+        self.assertEqual(contact_result["Location"], "/request/about_your_organization/")
 
     def test_application_about_your_organization_special(self):
         """Special districts have to answer an additional question."""