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

Override contact_us_url value from contact-us gem #660

Open
wants to merge 2 commits into
base: integration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

- Increased the width of the research outputs file size unit dropdown [#741](https://github.com/portagenetwork/roadmap/pull/741)

- Updated the "contact-us" link in some places [#660](https://github.com/portagenetwork/roadmap/pull/660)

## [4.0.2+portage-4.0.3] - 2024-04-11

### Added
Expand Down
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def current_locale_logo
end
end

# Override the contact_us_path value set by the contact-us gem
def contact_us_path
if I18n.locale == :'fr-CA'
'https://portagenetwork.ca/fr/contactez-nous/'
Expand All @@ -62,6 +63,9 @@ def contact_us_path
end
end

# Override the contact_us_url value set by the contact-us gem
alias contact_us_url contact_us_path

# TODO: Replace function body with the commented-out code when French version of this path is made available.
def terms_of_use_path
'https://dmp-pgd.ca/terms' # TEMPORARY FIX
Expand Down
Loading