Skip to content

Commit

Permalink
Fix hostname generation for RSS links
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Oct 11, 2023
1 parent 5fc2df3 commit 7fc7896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/express-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function generateItemRSS({ appConfig, feedUrl, toPublicURL, params }) {
function make_rssMiddleware(config, generator) {
function rssMiddleware(req, res, next) {
const appConfig = registry.searchui['datahub'];
const feedUrl = `${config.settings.apiPath}${req.path}`;
const feedUrl = `${EEA_DATAHUB}${req.path}`;

const toPublicURL = (id) => `${EEA_DATAHUB}/${viewRouteId}/${id}`;

Expand Down

0 comments on commit 7fc7896

Please sign in to comment.