Custom contact support link
Private eazyBI
This customization requires basic Ruby on Rails framework knowledge.
If you would like to modify Contact support link (which by default redirects to https://eazybi.com/contact) then you can create a custom helper file and overwrite contact_support_url method.
Create app/helpers/zzz_custom_helper.rb file (we use zzz_ prefix to ensure that this helper is loaded as the last and we can overwrite standard helper methods) with the following content:
module ZzzCustomHelper
def contact_support_url
url = "http://example.com/contact"
if current_user
url_params = {
name: current_user.name,
email: current_user.email
}
url << "?" << url_params.to_param
end
url
end
end
Restart Private eazyBI and now Contact support link will redirect to http://example.com/contact?name=...&email=...