Fix redirect with basepath

Fix #589
This commit is contained in:
Thomas Ghysels
2019-03-03 10:40:49 +01:00
parent 9522cb4539
commit 13b64cd1bb
2 changed files with 3 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ describe('with-basepath', function() {
let page: puppeteer.Page;
let base: string;
// helpers
let start: () => Promise<void>;
let prefetchRoutes: () => Promise<void>;
let title: () => Promise<string>;
@@ -63,14 +64,13 @@ describe('with-basepath', function() {
'custom-basepath/global.css',
'custom-basepath/index.html',
'custom-basepath/redirect-from/index.html',
'custom-basepath/redirect-to',
'custom-basepath/redirect-to/index.html',
'custom-basepath/service-worker-index.html',
'custom-basepath/service-worker.js'
]);
});
it('redirects on server', async () => {
console.log('base', base)
await page.goto(`${base}/custom-basepath/redirect-from`);
assert.equal(