|
|
@@ -433,7 +433,6 @@ module.exports = function(crowi, app) {
|
|
|
const revisionId = req.query.revision;
|
|
|
|
|
|
const layoutName = configManager.getConfig('crowi', 'customize:layout');
|
|
|
- const view = `layout-${layoutName}/shared_page`;
|
|
|
|
|
|
const shareLink = await ShareLink.findOne({ _id: linkId }).populate('relatedPage');
|
|
|
|
|
|
@@ -471,7 +470,7 @@ module.exports = function(crowi, app) {
|
|
|
addRenderVarsForScope(renderVars, page);
|
|
|
|
|
|
await interceptorManager.process('beforeRenderPage', req, res, renderVars);
|
|
|
- return res.render(view, renderVars);
|
|
|
+ return res.render(`layout-${layoutName}/shared_page`, renderVars);
|
|
|
};
|
|
|
|
|
|
/**
|