diff --git a/src/api/web/index.js b/src/api/web/index.js index 5312469de..71bbfe863 100644 --- a/src/api/web/index.js +++ b/src/api/web/index.js @@ -12,6 +12,7 @@ import express from 'express'; import { combineBaseUrl, getWebProtocol } from '../../lib/utils'; import Search from '../../lib/search'; import { HEADERS, HTTP_STATUS, WEB_TITLE } from '../../lib/constants'; +import { spliceURL } from '../../utils/string'; const { securityIframe } = require('../middleware'); /* eslint new-cap:off */ @@ -52,7 +53,6 @@ module.exports = function(config, auth, storage) { }); }); - function renderHTML(req, res) { const base = combineBaseUrl(getWebProtocol(req.get(HEADERS.FORWARDED_PROTO), req.protocol), req.get('host'), config.url_prefix); const webPage = template