From 63380c5dd885a7924d0a843faeefc4f6916cc5a8 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 16 Oct 2018 10:58:12 -0400 Subject: [PATCH] another change for #727 --- server/controllers/embed.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/controllers/embed.controller.js b/server/controllers/embed.controller.js index 8b56455a..020c492d 100644 --- a/server/controllers/embed.controller.js +++ b/server/controllers/embed.controller.js @@ -24,7 +24,8 @@ export function serveProject(req, res) { const sketchDoc = window.document; const base = sketchDoc.createElement('base'); - const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`; + // const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`; + const fullUrl = `${req.protocol}://${req.get('host')}`; base.href = `${fullUrl}/`; sketchDoc.head.appendChild(base);