Skip to content
Snippets Groups Projects
Commit 82f800cb authored by Katrin Leinweber's avatar Katrin Leinweber
Browse files

Update Support/get-help links in ? nav menu

In gitlab-com/www-gitlab-com!118135
we recently removed the old getting-help redirect.
Instead of reverting that, this commit makes the in-app link match.
parent f4ab8171
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,7 @@ def promo_url
end
def support_url
Gitlab::CurrentSettings.current_application_settings.help_page_support_url.presence || "#{promo_url}/getting-help/"
Gitlab::CurrentSettings.current_application_settings.help_page_support_url.presence || "#{promo_url}/get-help/"
end
def instance_review_permitted?
......
......@@ -12,7 +12,7 @@
= f.gitlab_ui_checkbox_component :help_page_hide_commercial_content, _('Hide marketing-related entries from the Help page')
.form-group
= f.label :help_page_support_url, _('Support page URL'), class: 'label-bold'
= f.text_field :help_page_support_url, class: 'form-control gl-form-input', placeholder: 'https://company.example.com/getting-help', :'aria-describedby' => 'support_help_block'
= f.text_field :help_page_support_url, class: 'form-control gl-form-input', placeholder: 'https://company.example.com/get-help', :'aria-describedby' => 'support_help_block'
%span.form-text.text-muted#support_help_block= _('Alternate support URL for Help page and Help dropdown.')
.form-group
......
......@@ -861,7 +861,7 @@
context 'Nav bar' do
it 'shows default help links in nav' do
default_support_url = "https://#{ApplicationHelper.promo_host}/getting-help/"
default_support_url = "https://#{ApplicationHelper.promo_host}/get-help/"
visit root_dashboard_path
......
......@@ -211,7 +211,7 @@ def element(**arguments)
describe '#support_url' do
context 'when alternate support url is specified' do
let(:alternate_url) { 'http://company.example.com/getting-help' }
let(:alternate_url) { 'http://company.example.com/get-help' }
it 'returns the alternate support url' do
stub_application_setting(help_page_support_url: alternate_url)
......@@ -222,7 +222,7 @@ def element(**arguments)
context 'when alternate support url is not specified' do
it 'builds the support url from the promo_url' do
expect(helper.support_url).to eq(helper.promo_url + '/getting-help/')
expect(helper.support_url).to eq(helper.promo_url + '/get-help/')
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment