diff --git a/server/models/views/alerts-and-warnings.js b/server/models/views/alerts-and-warnings.js index 6ea733d2d..4d0ffb75e 100644 --- a/server/models/views/alerts-and-warnings.js +++ b/server/models/views/alerts-and-warnings.js @@ -1,4 +1,5 @@ const { bingKeyMaps } = require('../../config') +const config = require('../../config') class ViewModel { constructor ({ location, place, floods, station, error }) { @@ -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) { diff --git a/server/views/partials/related-content.html b/server/views/partials/related-content.html index d7f0787e3..9d204239c 100644 --- a/server/views/partials/related-content.html +++ b/server/views/partials/related-content.html @@ -25,7 +25,7 @@