diff --git a/snapshare.js b/snapshare.js index 21d4bb4..4c558c0 100644 --- a/snapshare.js +++ b/snapshare.js @@ -1,6 +1,5 @@ import {PutObjectCommand, S3Client} from "@aws-sdk/client-s3"; import cors from 'cors' -import {urlencoded} from "express"; import crypto from "crypto"; 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 data = { 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); });