Use page_path to generate the census_terms URL
We had a link to `/census_terms`, and by looking at the code, it wasn't so clear where this URL came from. Using `page_path`, it's easier to understand that it comes from a page with the `census_term` slug. It also means we'll find this line when searching for usages of `page_path` in the code.
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
<%= f.check_box :terms_of_service,
|
||||
title: t("verification.residence.new.accept_terms_text_title"),
|
||||
label: t("verification.residence.new.accept_terms_text",
|
||||
terms_url: link_to(t("verification.residence.new.terms"), "/census_terms",
|
||||
terms_url: link_to(t("verification.residence.new.terms"), page_path("census_terms"),
|
||||
title: t("shared.target_blank"),
|
||||
target: "_blank")
|
||||
) %>
|
||||
|
||||
Reference in New Issue
Block a user