Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Fix urls #1351

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/middlewares/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function (config) {
`<meta property="og:description" content="${description}"/>`,
`<meta property="og:title" content="${title}"/>`,
`<meta property="og:site_name" content="Qwant Maps"/>`,
`<meta property="og:image" content="https://${getUrl(req)}statics/images/facebook.jpg"/>`,
`<meta property="og:image" content="${getUrl(req)}statics/images/facebook.jpg"/>`,
`<meta property="og:image:width" content="1000" />`,
`<meta property="og:image:height" content="536" />`,
`<meta property="og:type" content="website"/>`,
Expand All @@ -50,10 +50,10 @@ module.exports = function (config) {
`<meta name="application-name" content="Qwant Maps"/>`,
`<meta name="twitter:title" content="${title}"/>`,
`<meta name="twitter:card" content="summary_large_image">`,
`<meta name="twitter:image" content="https://${getUrl(req)}statics/images/twitter.jpg">`,
`<meta name="twitter:image" content="${getUrl(req)}statics/images/twitter.jpg">`,
`<meta name="twitter:site" content="@QwantCom">`,
`<meta name="twitter:creator" content="@QwantCom">`,
`<meta name="twitter:domain" content="https://${url}">`,
`<meta name="twitter:domain" content="${url}">`,
`<meta name="twitter:widgets:csp" content="on"/>`,
];

Expand Down