Skip to content

Commit

Permalink
DALT syndication redirects and configuration (#2519)
Browse files Browse the repository at this point in the history
* Omit the syndicated logos from DALT

The new tool displays its own logo so this will be unnecessary.

* Configure redirects for new DALT syndication
  • Loading branch information
benlovell authored Feb 20, 2025
1 parent 61858a8 commit f58b712
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/assets/javascripts/syndication/tools.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
cy:
path: "cy/tools/canfyddwr-cyngor-ar-ddyledion"
title: "Debt advice locator"
omit_logo: true

debt_advice_locator_f2f:
en:
Expand All @@ -325,6 +326,7 @@
path: "cy/tools/canfyddwr-cyngor-ar-ddyledion/f2f"
title: "Debt advice locator - face to face"
width: "100%"
omit_logo: true

car_cost_tool:
en:
Expand Down
2 changes: 1 addition & 1 deletion lib/legacy_redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
r301 %r{^/en/tools/house-buying/stamp-duty-calculator/?(.*)}, 'https://tools.moneyhelper.org.uk/en/sdlt-calculator?isEmbedded=true', host: LEGACY_MAS_SYNDICATION
r301 %r{^/en/tools/house-buying/land-and-buildings-transaction-tax-calculator-scotland/?(.*)}, 'https://tools.moneyhelper.org.uk/en/lbtt-calculator?isEmbedded=true', host: LEGACY_MAS_SYNDICATION
r301 %r{^/en/tools/mortgage-calculator/?(.*)}, 'https://tools.moneyhelper.org.uk/en/mortgage-calculator?isEmbedded=true', host: LEGACY_MAS_SYNDICATION
r301 %r{^/en/tools/debt-advice-locator/?(.*)}, 'https://debt-advice-locator.moneyhelper.org.uk/en/question-1?isEmbedded=true', host: LEGACY_MAS_SYNDICATION

r301 %r{^/en/tools/budget-planner/?(.*)}, 'https://www.moneyhelper.org.uk/en/everyday-money/budgeting/budget-planner', host: LEGACY_MAS_WWW
r301 %r{^/cy/tools/cynllunydd-cyllideb/?(.*)}, 'https://www.moneyhelper.org.uk/cy/everyday-money/budgeting/budget-planner', host: LEGACY_MAS_WWW
r301 %r{^/en/tools/debt-advice-locator/?(.*)}, 'https://www.moneyhelper.org.uk/en/money-troubles/dealing-with-debt/debt-advice-locator', host: LEGACY_MAS_WWW
r301 %r{^/en/tools/mortgage-calculator/?(.*)}, 'https://www.moneyhelper.org.uk/en/homes/buying-a-home/mortgage-calculator', host: LEGACY_MAS_WWW
r301 %r{^/en/tools/house-buying/stamp-duty-calculator/?(.*)}, 'https://www.moneyhelper.org.uk/en/homes/buying-a-home/stamp-duty-calculator', host: LEGACY_MAS_WWW
r301 %r{^/en/tools/pension-calculator/?(.*)}, 'https://www.moneyhelper.org.uk/en/pensions-and-retirement/pensions-basics/pension-calculator', host: LEGACY_MAS_WWW
Expand Down
6 changes: 6 additions & 0 deletions spec/requests/legacy_redirects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
describe 'legacy tools to new tools redirects' do
before { host! 'partner-tools.moneyadviceservice.org.uk' }

it 'redirects to the new debt advice locator' do
get '/en/tools/debt-advice-locator'

expect(request).to redirect_to('https://debt-advice-locator.moneyhelper.org.uk/en/question-1?isEmbedded=true')
end

it 'redirects to the new mortgage calculator' do
get '/en/tools/mortgage-calculator'

Expand Down

0 comments on commit f58b712

Please sign in to comment.