We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3e0ff commit 8f0cbb9Copy full SHA for 8f0cbb9
src/gatsby/lib/pages-creator.js
@@ -213,9 +213,12 @@ export default class PagesCreator {
213
}
214
215
writeRouteMap (filename) {
216
+ const pathPrefix = getOption('basePath')
217
const map = _.mapValues(this.routeMap, route => ({
- path: route.path,
218
- scopes: _.mapValues(route.scopes, 'path')
+ path: path.join(pathPrefix, route.path),
219
+ scopes: _.mapValues(route.scopes, sroute => (
220
+ path.join(pathPrefix, sroute.path)
221
+ ))
222
}))
223
const content = `"use strict";\n\nmodule.exports = ${JSON.stringify(map, null, 2)};`
224
try {
0 commit comments