Merge pull request #1381 from davidbmx/master
resolve path present assets #1268
This commit is contained in:
commit
649627bfdc
2 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,7 @@ export function serveProject(req, res) {
|
|||
const sketchDoc = window.document;
|
||||
|
||||
const base = sketchDoc.createElement('base');
|
||||
const fullUrl = `https://${req.get('host')}${req.originalUrl}`;
|
||||
const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`;
|
||||
base.href = `${fullUrl}/`;
|
||||
sketchDoc.head.appendChild(base);
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ const router = new Router();
|
|||
router.get('/:username/sketches/:project_id/*', getProjectAsset);
|
||||
router.get('/full/:project_id/*', getProjectAsset);
|
||||
router.get('/:username/full/:project_id/*', getProjectAsset);
|
||||
router.get('/present/:project_id/*', getProjectAsset);
|
||||
router.get('/:username/present/:project_id/*', getProjectAsset);
|
||||
router.get('/embed/:project_id/*', getProjectAsset);
|
||||
router.get('/:username/embed/:project_id/*', getProjectAsset);
|
||||
|
||||
|
|
Loading…
Reference in a new issue