share landing page bugfixes
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import {PutObjectCommand, S3Client} from "@aws-sdk/client-s3";
|
import {PutObjectCommand, S3Client} from "@aws-sdk/client-s3";
|
||||||
import cors from 'cors'
|
import cors from 'cors'
|
||||||
import {urlencoded} from "express";
|
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
|
|
||||||
const SNAPSHOT_URL = process.env.DEXORDER_SNAPSHOT_URL;
|
const SNAPSHOT_URL = process.env.DEXORDER_SNAPSHOT_URL;
|
||||||
@@ -53,7 +52,7 @@ export function initSnapShare(app) {
|
|||||||
const imageFilename = req.query.i; // c = snapshot code
|
const imageFilename = req.query.i; // c = snapshot code
|
||||||
const data = {
|
const data = {
|
||||||
imageUrl: SNAPSHOT_URL + '/' + imageFilename,
|
imageUrl: SNAPSHOT_URL + '/' + imageFilename,
|
||||||
redirectUrl: APP_URL + '/share?d=' + urlencoded(req.query.d), // d=data
|
redirectUrl: APP_URL + '/shared?d=' + encodeURIComponent(req.query.d), // d=data
|
||||||
};
|
};
|
||||||
res.render('share', data);
|
res.render('share', data);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user