Skip to content

Commit 1337767

Browse files
committed
Update present view baseUrl
1 parent 913de33 commit 1337767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/controllers/embed.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function serveProject(req, res) {
2626
const sketchDoc = window.document;
2727

2828
const base = sketchDoc.createElement('base');
29-
const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`;
29+
const fullUrl = `//${req.get('host')}${req.originalUrl}`;
3030
base.href = `${fullUrl}/`;
3131
sketchDoc.head.appendChild(base);
3232

0 commit comments

Comments
 (0)