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 authored Jul 22, 2020
1 parent 3864761 commit d3042e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ 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 d3042e0

Please sign in to comment.