This commit is contained in:
@@ -45,7 +45,7 @@ async function createDevRouter(db: DatabaseConnection) {
|
||||
const { html, metadata, asyncCallbacks } = render(req.originalUrl, db)
|
||||
await Promise.all(asyncCallbacks.map(fn => fn()))
|
||||
|
||||
const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`
|
||||
const fullUrl = `https://${req.get('host')}${req.originalUrl}`
|
||||
const metaTagsHtml =
|
||||
'' +
|
||||
(metadata.title ? `<meta property="og:title" content="${metadata.title ?? 'PHC | Problemi'}" />\n` : '') +
|
||||
@@ -80,7 +80,7 @@ async function createProductionRouter(db: DatabaseConnection) {
|
||||
const { html, metadata, asyncCallbacks } = render(req.originalUrl, db)
|
||||
await Promise.all(asyncCallbacks.map(fn => fn()))
|
||||
|
||||
const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`
|
||||
const fullUrl = `https://${req.get('host')}${req.originalUrl}`
|
||||
const metaTagsHtml =
|
||||
'' +
|
||||
(metadata.title
|
||||
|
||||
Reference in New Issue
Block a user