mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: prefer webmanifest extension over json
https://w3c.github.io/manifest/#media-type-registration
This commit is contained in:
@@ -55,7 +55,7 @@ Tags.parse = async (req, data, meta, link) => {
|
|||||||
href: nconf.get('relative_path') + nconf.get('upload_url') + '/system/favicon.ico' + (Meta.config['cache-buster'] ? '?' + Meta.config['cache-buster'] : ''),
|
href: nconf.get('relative_path') + nconf.get('upload_url') + '/system/favicon.ico' + (Meta.config['cache-buster'] ? '?' + Meta.config['cache-buster'] : ''),
|
||||||
}, {
|
}, {
|
||||||
rel: 'manifest',
|
rel: 'manifest',
|
||||||
href: nconf.get('relative_path') + '/manifest.json',
|
href: nconf.get('relative_path') + '/manifest.webmanifest',
|
||||||
}];
|
}];
|
||||||
|
|
||||||
if (plugins.hasListeners('filter:search.query')) {
|
if (plugins.hasListeners('filter:search.query')) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = function (app, middleware, controllers) {
|
|||||||
app.get('/sitemap/categories.xml', controllers.sitemap.getCategories);
|
app.get('/sitemap/categories.xml', controllers.sitemap.getCategories);
|
||||||
app.get(/\/sitemap\/topics\.(\d+)\.xml/, controllers.sitemap.getTopicPage);
|
app.get(/\/sitemap\/topics\.(\d+)\.xml/, controllers.sitemap.getTopicPage);
|
||||||
app.get('/robots.txt', controllers.robots);
|
app.get('/robots.txt', controllers.robots);
|
||||||
app.get('/manifest.json', controllers.manifest);
|
app.get('/manifest.webmanifest', controllers.manifest);
|
||||||
app.get('/css/previews/:theme', controllers.admin.themes.get);
|
app.get('/css/previews/:theme', controllers.admin.themes.get);
|
||||||
app.get('/osd.xml', controllers.osd.handle);
|
app.get('/osd.xml', controllers.osd.handle);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user