Skip to content

Commit

Permalink
fix: use router.getFile to resolve fallback url
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jul 27, 2020
1 parent 3864761 commit f87d9a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/fetch/index.js
Expand Up @@ -209,7 +209,9 @@ export function fetchMixin(proto) {
return false;
}

const newPath = path.replace(new RegExp(`^/${local}`), '');
const newPath = this.router.getFile(
path.replace(new RegExp(`^/${local}`), '')
);
const req = request(newPath + qs, true, requestHeaders);

req.then(
Expand Down

0 comments on commit f87d9a5

Please sign in to comment.