mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(crawler): skip external link with no schema (#7806)
This commit is contained in:
parent
2e1025f2de
commit
19e68e770c
@ -304,7 +304,7 @@ export default class Generator {
|
|||||||
|
|
||||||
const route = decodeURI(sanitizedHref + possibleTrailingSlash)
|
const route = decodeURI(sanitizedHref + possibleTrailingSlash)
|
||||||
|
|
||||||
if (route.startsWith('/') && !path.extname(route) && this.shouldGenerateRoute(route) && !this.generatedRoutes.has(route)) {
|
if (route.startsWith('/') && !route.startsWith('//') && !path.extname(route) && this.shouldGenerateRoute(route) && !this.generatedRoutes.has(route)) {
|
||||||
this.generatedRoutes.add(route)
|
this.generatedRoutes.add(route)
|
||||||
this.routes.push({ route })
|
this.routes.push({ route })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user