diff --git a/src/core/fetch/index.js b/src/core/fetch/index.js index 923dc3e903..ee71fe8971 100644 --- a/src/core/fetch/index.js +++ b/src/core/fetch/index.js @@ -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(