Skip to content

Commit

Permalink
removed hard coded CYLTFR link (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGordon83 authored Jan 17, 2024
1 parent 1441f3b commit ae38f50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion server/models/views/alerts-and-warnings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { bingKeyMaps } = require('../../config')
const config = require('../../config')

class ViewModel {
constructor ({ location, place, floods, station, error }) {
Expand All @@ -13,7 +14,8 @@ class ViewModel {
error: error ? true : null,
getWarnings: 'Alerts-and-warnings:Related-content:Get-warnings',
isEngland: place ? place.isEngland.is_england : null,
isDummyData: floods ? floods.isDummyData : false
isDummyData: floods ? floods.isDummyData : false,
floodRiskUrl: config.floodRiskUrl
})

if (error) {
Expand Down
2 changes: 1 addition & 1 deletion server/views/partials/related-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="govuk-heading-s" id="subsection-title">
</a>
</li>
<li>
<a data-journey-click="{% if model.longTerm %}{{ model.longTerm }}{% endif %}" class="govuk-link" href="https://www.gov.uk/check-long-term-flood-risk">
<a data-journey-click="{% if model.longTerm %}{{ model.longTerm }}{% endif %}" class="govuk-link" href={{model.floodRiskUrl}}>
Check your long term flood risk
</a>
<li>
Expand Down

0 comments on commit ae38f50

Please sign in to comment.