|
|
@@ -447,6 +447,7 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
actions.showSharedPage = async function(req, res, next) {
|
|
|
const { linkId } = req.params;
|
|
|
+ const revisionId = req.query.revision;
|
|
|
|
|
|
const layoutName = configManager.getConfig('crowi', 'customize:layout');
|
|
|
const view = `layout-${layoutName}/shared_page`;
|
|
|
@@ -472,8 +473,6 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
// presentation mode
|
|
|
if (req.query.presentation) {
|
|
|
- const revisionId = req.query.revision;
|
|
|
-
|
|
|
page = await page.populateDataToMakePresentation(revisionId);
|
|
|
|
|
|
// populate
|