Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean Up /contact-us Page, Fix "Contact us" Footer Link, and Update terms_of_use_path #978

Open
wants to merge 6 commits into
base: integration
Choose a base branch
from

Conversation

aaronskiba
Copy link
Collaborator

Fixes #961

Changes proposed in this PR:

  • Prevent dummy values for "telephone", "address", and "google_maps_link" from being rendered within /contact-us page.
  • Fix variable name typos within config.x.organisation.address to properly correspond with variable names within app/views/contact_us/contacts/_new_right.html.erb.
  • Override/undo overriding of contact_us_path
    • contact_us_path now defaults to the following via the contact_us gem:
      3.1.4 :001 > Rails.application.routes.url_helpers.contact_us_path
      => "/contact-us"
      3.1.4 :002 > I18n.locale = :'fr-CA'
      => :"fr-CA"
      3.1.4 :003 > Rails.application.routes.url_helpers.contact_us_path
      => "/contact-us"
      
  • Simplify def terms_of_use_path
    • The helper function simply returns '/terms' now

The dummy values for `telephone`, `address`, and `google_maps_link` were being rendered within the `/contact-us` page. This commit sets them to nil, which avoids confusion by not rendering any values at all.
`app/views/contact_us/contacts/_new_right.html.erb` references these variables. However, it does so without underscores. (However, we probably didn't want the values to render in the first place, so we're probably lucky.)
Prior to this change, users were being routed to portagenetwork.ca when clicking "Contact us" in the footer. This could have lead to users being misplaced into the Portage Network help queue, rather than the intended DMP Assistant help queue.

Removing the `contact_us_path` helper method now results in the following behaviour for `contact_us_path`:

3.1.4 :001 > Rails.application.routes.url_helpers.contact_us_path
 => "/contact-us"
3.1.4 :002 > I18n.locale = :'fr-CA'
 => :"fr-CA"
3.1.4 :003 > Rails.application.routes.url_helpers.contact_us_path
 => "/contact-us"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant